Modular Sessions provides modular sessions management middleware for use with FastAPI. This project takes its inspiration from FastAPI-Sessions which is a great project but appears to not maintained anymore. Additionally, this project the project seeks to provide more options for server-side session storage and session management like Flask-Sessions.
Source Code: https://github.com/beehivewarrior/modular_sessions/
- ASGI Compatible Middleware
- Backend Agnostic with built-in support for Redis, and In-Memory
- Frontend Agnostic with built-in support for Cookies, and Headers
- Session Verification and Validation options
- Pydantic Models for Session and Session Data
Built-in support for:
-
Backends:
- Redis
- In-Memory
- Memcached (Coming Soon)
-
Frontends:
- Signed Cookies
- Headers (Coming Soon)
-
Verification:
- Basic
- Okta (Coming Soon)