Skip to main content

Yet Another FSM SQLite Storage

PyPI - Wheel PyPI - Version PyPI - Python Version PyPI - License release develop

[!NOTE] When it was necessary for my project, I did not find such projects as osf4/sqlitestorage or sashaferrum/aiogram_sqlite_storage :sob: and adapted this fork to my needs. More forks to the God of forks! :laughing:

Simple aiogram FSM storage, stores all FSM data in SQLite database

Intended to replace MemoryStorage for simple cases where you want to keep states between bot restarts.

Implements just basic BaseStorage methods such as:

  • set_state()
  • get_state()
  • set_data()
  • get_data()
  • close()

Tests are based on original aiogram tests v3.13.1.

Installation

pip install aiogram-fsm-sqlitestorage

Usage

Include the following in your script:

# import aiogram and the rest
from aiogram_fsm_sqlitestorage import SQLiteStorage

dp = Dispatcher(bot, storage=SQLiteStorage())

Using SQLiteStorage() instead of MemoryStorage() makes your FSM data persistent between bot restarts.

Metadata

Release files for aiogram-fsm-sqlitestorage 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aiogram-fsm-sqlitestorage 1.0.0
File Size Uploaded
aiogram_fsm_sqlitestorage-1.0.0.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aiogram-fsm-sqlitestorage 1.0.0
File Interpreter ABI Platform
aiogram_fsm_sqlitestorage-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.8 kB

Release files / aiogram_fsm_sqlitestorage-1.0.0.tar.gz

Download URL aiogram_fsm_sqlitestorage-1.0.0.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
db3e24e99b29869814350c4b550c3e3097624d88c2fe276a684066c4bf2e44b1
BLAKE2b-256 checksum
How to use checksums
ef4fcd2377595f7a6343ff9c488978f3a7d071d57483135c8ed2f9af4b9d8c64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Release files / aiogram_fsm_sqlitestorage-1.0.0-py3-none-any.whl

Download URL aiogram_fsm_sqlitestorage-1.0.0-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4178fe9e6e8b8d6dae4c06f6c10156e64171e3cb73fe8c255b3741193b73c7f4
BLAKE2b-256 checksum
How to use checksums
8d50b8719d66a34c93098392fcbcc66432fd50ba924cb770bc7433fb52c6fbf0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page