FastAPI-Sessions
Documentation: https://jordanisaacs.github.io/fastapi-sessions/
Source Code: https://github.com/jordanisaacs/fastapi-sessions/
PyPI: https://pypi.org/project/fastapi-sessions/
Quickly add session authentication to your FastAPI project. FastAPI Sessions is designed to be user friendly and customizable.
Features
- Dependency injection to protect routes
- Compatible with FastAPI's auto generated docs
- Pydantic models for verifying session data
- Abstract session backend so you can build one that fits your needs
- Abstract frontends to choose how you extract the session ids (cookies, header, etc.)
- Create verifiers based on the session data
- Mix and match frontends and backends
Currently Included Backends/Frontends:
- Backends
- In memory dictionary
- Frontends
- Signed cookies
Upcoming:
- Documentation and user guides
- More backends and frontends
Installation
pip install fastapi-sessions
Getting Started
Check out the guide to using fastapi-sessions: https://jordanisaacs.github.io/fastapi-sessions/guide/getting_started/
Metadata
Release files for fastapi-sessions 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fastapi-sessions-0.3.2.tar.gz | 5.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fastapi_sessions-0.3.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.4 kB
Release files / fastapi-sessions-0.3.2.tar.gz
| Download URL | fastapi-sessions-0.3.2.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5159023fd548f8a9c198a966cf1086a73a43038cf3b9b79175fe33129f15e64c
|
|
BLAKE2b-256 checksum How to use checksums |
1d89da83ba47bd70101e14eca0ac57c7f300b055b70104446badfdc1dcbe813f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/3.8.9 Linux/5.10.62
|
Release files / fastapi_sessions-0.3.2-py3-none-any.whl
| Download URL | fastapi_sessions-0.3.2-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b7f5642224b8f03661428e9fb45c9d96c4e61a9cdf963c9ba36ce8428629b0bc
|
|
BLAKE2b-256 checksum How to use checksums |
9216c0cd4442b21589eb605b68789a6c078e2948b728beb40ba504873c6e71ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/3.8.9 Linux/5.10.62
|