Skip to main content

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

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyrogram-asyncpg-storage-0.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

pyrogram_asyncpg_storage-0.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file pyrogram-asyncpg-storage-0.1.tar.gz.

File metadata

File hashes

Hashes for pyrogram-asyncpg-storage-0.1.tar.gz
Algorithm Hash digest
SHA256 5a19720ad9a6f939644efd42c5082cf805a445b9294368bbf558dbb468cafda2
MD5 2637acbf784155bf14fa52665408409a
BLAKE2b-256 42896c1b43036ef4d338f2eca24b9aa4f4a3dc7b73f52df790895c7d53c3d29a

See more details on using hashes here.

File details

Details for the file pyrogram_asyncpg_storage-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pyrogram_asyncpg_storage-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 58b784889e03f875fe08a2882c394b8d7e700c476af3dccbdafb59e41fe65b86
MD5 9b22fed691c8620be47ab227b3661b71
BLAKE2b-256 e6023fda425a396bce58ad0494121224ea00595900841f1a8b5b662f74dac065

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page