Skip to main content

A FSM Storage for aiogram 3.0+, based on SQLite and picle.

Project description

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. And using 'pickle' libruary for serializing objects. It's sutable for small and simple projects.

Installation:

pip install aiogram-sqlite-storage

Usage:

# Import SQLStorage class
from aiogram_sqlite_storage.sqlitestore import SQLStorage
from aiogram import Dispatcher

# Initialise a storage
# Path to a database is optional. 'fsm_starage.db' will be created for default.
my_storage = SQLStorage('my_db_path.db')

# Initialize dispetcher with the storage
dp = Dispatcher(storage = my_storage)

# Use your FSM states and data as usual

Project details


Download files

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

Source Distribution

aiogram_sqlite_storage-0.2.0.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aiogram_sqlite_storage-0.2.0-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file aiogram_sqlite_storage-0.2.0.tar.gz.

File metadata

  • Download URL: aiogram_sqlite_storage-0.2.0.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for aiogram_sqlite_storage-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3422025d455929f01dd7d00addd541ccd5b1f569a3c3ed269465de35a780a165
MD5 ea234959b126193cb5b49efbbadc472c
BLAKE2b-256 e845f60865165cb4906c58eb46fa132ea77d25b05746ab06b9bb932bc3c2ee18

See more details on using hashes here.

File details

Details for the file aiogram_sqlite_storage-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aiogram_sqlite_storage-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7b69e3fb8b3fe6da71dc3cacc387206c19fc484b0b00ba2840a9227defc9b44e
MD5 7e7dcec51136620dda5cf794c334d6f4
BLAKE2b-256 f0dfc7486fbd173d100100c07a9299cc829e928f03146f343326344b40959d19

See more details on using hashes here.

Supported by

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