Ready-to-use session library for FastAPI
Project description
FastAPI-Sessions
Documentation: https://jordanisaacs.github.io/fastapi-sessions/
Source Code: https://github.com/jordanisaacs/fastapi-sessions/
PyPI: https://pypi.org/project/fastapi-session/
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/
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
Built Distribution
File details
Details for the file fastapi-sessions-0.3.0.tar.gz
.
File metadata
- Download URL: fastapi-sessions-0.3.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.8.5 Linux/5.4.72-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aecdccb5087c1025fcd6c39e8d7ee2e8b5f080652400f8d4927065715f068c50 |
|
MD5 | 25b8c911efd8db08a29fa361f8d55b50 |
|
BLAKE2b-256 | 8ef3464752f7eadefad4243eefe582b4ea89169bd4f77cebae30146b1a04b288 |
File details
Details for the file fastapi_sessions-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: fastapi_sessions-0.3.0-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.8.5 Linux/5.4.72-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a05556fdfca7cf236d2a04c8c5d137a5b405506d1eff3f5372fe58c6ef3e198 |
|
MD5 | cfdd8d8fcc09ba1e88d08c329da954c1 |
|
BLAKE2b-256 | 5e4d89c18e4822b573bba8d2016eddd53fae92be69a8bd89e6c6bf5cea75e9d6 |