Magick for Aiogram 3.x-based Telegram bots
Project description
Aiogram Magick
Magick for Aiogram 3.x-based Telegram bots.
Compontents:
Getting started!
- Install
aiogram_magick
and dependencies for submodules:
pip install aiogram_magick
# For aiogram_magick.sqlite
pip install aiosqlite jsonpickle
- Import submodules that provide needed functionality (see examples below or read documentation)
Examples
SQLite storage
from aiogram_magick.sqlite import SqliteStorage
# By default, SqliteStorage is configured to:
# - Commit changes on 30 minute idle and on shutdown;
# - Cache states (up to 20 entries) and data (up to 10 entries);
# - Ignore any exceptions;
# - To avoid file corruptions on shutdown any `sqlite3.OperationalError`s
# are printed using `traceback.print_exception` instead of raised normally.
dp = Dispatcher(storage=SqliteStorage('aiogram.sqlite'))
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
aiogram_magick-0.1.0.tar.gz
(4.7 kB
view details)
Built Distribution
File details
Details for the file aiogram_magick-0.1.0.tar.gz
.
File metadata
- Download URL: aiogram_magick-0.1.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4c6fadb7469c9165dc03c0e8a363858792e7a5c31adf8b100bc4c90518d9967 |
|
MD5 | 98709a2a5a0808137ec74fb11c7b5330 |
|
BLAKE2b-256 | 323d66266dea0aa44861a3db516f235d85ee18dd47858701fe25c6f74ddb7fd1 |
File details
Details for the file aiogram_magick-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: aiogram_magick-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d2771863fcbf6af49a5b8b131f87b5aece798fb34a1a39b49797262f3aad80b |
|
MD5 | c604ec48418ce610b2bf50a78c9a3c84 |
|
BLAKE2b-256 | a312759d235af3e578d85dc06ab4b65362102bbbc52e702ce632dddef953226c |