A FSM Storage for aiogram 3.0+
It's a very simple FSM Storage for the aiogram 3.0+. It uses local SQLite database for storing states and data. It's possible to chose method of serializing data in the database. A 'pickle' or a 'json' are available. A 'pickle' is used as default.
Installation:
pip install aiogram-sqlite-storage
Usage:
from aiogram import Dispatcher
# Import SQLStorage class
from aiogram_sqlite_storage.sqlitestore import SQLStorage
# Initialise a storage
# Path to a database is optional. 'fsm_starage.db' will be created for default.
# 'serializing_method' is optional. 'pickle' is a default value. Also a 'json' is possible.
my_storage = SQLStorage('my_db_path.db', serializing_method = 'pickle')
# Initialize dispetcher with the storage
dp = Dispatcher(storage = my_storage)
# Use your FSM states and data as usual
Metadata
Release files for aiogram-sqlite-storage 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aiogram_sqlite_storage-1.0.1.tar.gz | 17.2 kB | Without provenance | Details for aiogram_sqlite_storage-1.0.1.tar.gz |
Release files / aiogram_sqlite_storage-1.0.1.tar.gz
| Download URL | aiogram_sqlite_storage-1.0.1.tar.gz |
|---|---|
| Size | 17.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fe571d51702d366fc82627de2326f609b47211785a9c054b49f761487b1053a6
|
|
BLAKE2b-256 checksum How to use checksums |
32724aa859d65a436a0563c72695d466b8e55b64351219cfdc910f991f021b9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.1
|
Security for aiogram-sqlite-storage 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.