{"id":15576251,"url":"https://github.com/parikls/pyrogram-aiopg-storage","last_synced_at":"2025-04-09T17:44:05.348Z","repository":{"id":48128802,"uuid":"358055667","full_name":"parikls/pyrogram-aiopg-storage","owner":"parikls","description":"aiopg + sqlalchemy storage for pyrogram","archived":false,"fork":false,"pushed_at":"2022-01-28T16:58:04.000Z","size":6,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T22:48:07.894Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/parikls.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-14T22:14:32.000Z","updated_at":"2025-02-15T20:59:38.000Z","dependencies_parsed_at":"2022-08-12T19:20:09.105Z","dependency_job_id":null,"html_url":"https://github.com/parikls/pyrogram-aiopg-storage","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parikls%2Fpyrogram-aiopg-storage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parikls%2Fpyrogram-aiopg-storage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parikls%2Fpyrogram-aiopg-storage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parikls%2Fpyrogram-aiopg-storage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parikls","download_url":"https://codeload.github.com/parikls/pyrogram-aiopg-storage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248080291,"owners_count":21044478,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T18:44:25.871Z","updated_at":"2025-04-09T17:44:05.326Z","avatar_url":"https://github.com/parikls.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Pyrogram aiopg storage\n======================\n\nMotivation\n----------\n\nI need to work with multiple telegram session and keep all of them in a single PostgreSQL database.\nI use aiopg with SQLAlchemy hence I've written a wrapper for this stack.\nMaybe someone also requires such\n\nUsage\n-----\n\n```python\n\nimport aiopg.sa\nfrom pyrogram import Client\nfrom pyrogram_aiopg_storage import PostgreSQLStorage\n\ndb_pool = await aiopg.sa.create_engine(...)\nsession = PostgreSQLStorage(db_pool=db_pool, user_id=..., phone=...)\npyrogram = Client(session_name=session)\nawait pyrogram.connect()\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparikls%2Fpyrogram-aiopg-storage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparikls%2Fpyrogram-aiopg-storage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparikls%2Fpyrogram-aiopg-storage/lists"}