Skip to content

Filters, Guard & Storage API

shirdal.engine.magic.MagicFilter

Bases: Filter

Lightweight, dependency-free expression filter (e.g., F.text.startswith('http')).

shirdal.guard.antiflood.AntiFloodAdapter

Transparent TransportAdapter wrapper providing rate pacing and FloodWait recovery.

shirdal.storage.sqlite.SQLiteStorage

Tuned WAL-mode SQLite storage with L1 in-memory cache for FSM and chats.

shirdal.storage.redis.RedisStorage

Distributed Redis backend for FSM states and chat caching.

shirdal.storage.crypto.EncryptedStorage

Transparent FSMStorage wrapper encrypting state names and data payloads.