asyncpg storage for pyrogram
Project description
Pyrogram asyncpg storage
Usage
import asyncpg
from pyrogram import Client
from pyrogram_asyncpg_storage import PostgreSQLStorage
app = Client(...)
async def set_session():
pool = await asyncpg.create_pool()
session = PostgreSQLStorage(name=..., pool=pool)
app.storage = session
app.run(set_session())
app.run()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyrogram-asyncpg-storage-0.1.tar.gz
.
File metadata
- Download URL: pyrogram-asyncpg-storage-0.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a19720ad9a6f939644efd42c5082cf805a445b9294368bbf558dbb468cafda2 |
|
MD5 | 2637acbf784155bf14fa52665408409a |
|
BLAKE2b-256 | 42896c1b43036ef4d338f2eca24b9aa4f4a3dc7b73f52df790895c7d53c3d29a |
File details
Details for the file pyrogram_asyncpg_storage-0.1-py3-none-any.whl
.
File metadata
- Download URL: pyrogram_asyncpg_storage-0.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58b784889e03f875fe08a2882c394b8d7e700c476af3dccbdafb59e41fe65b86 |
|
MD5 | 9b22fed691c8620be47ab227b3661b71 |
|
BLAKE2b-256 | e6023fda425a396bce58ad0494121224ea00595900841f1a8b5b662f74dac065 |