Ready-to-use session cookies with custom backends for FastAPI
Project description
FastAPI-Sessions
Documentation: https://jordanisaacs.github.io/fastapi-sessions/
Source Code: https://github.com/jordanisaacs/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 the routes you want
- Timestamp signed session IDs with itsdangerous
- Compabitibility with OpenAPI docs using APIKeyCookie
- Pydantic models for verifying session data
- Abstract session backend so you can build one that fits your needs
- Currently included backends
- In memory
Upcoming:
- Documentation and user guides
- Hassle free CSRF Tokens
- More backends!
This project was started on April 3rd and progress is ongoing. Follow the repo for updates!
Installation
The project is currently in a pre-alpha state and is not stable.
pip install fastapi-sessions
Guide
Check out the guide to building and using session based authentication with 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.2.0.tar.gz
.
File metadata
- Download URL: fastapi-sessions-0.2.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.5 CPython/3.9.1 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c08e8f704da7f276c7853c1b72b54ec69fdfe253f3854dcf3b5c080d8efa7d89 |
|
MD5 | 04a4453b98fa0c1de8fdb6fbbc40648c |
|
BLAKE2b-256 | 77614aab3109a6821032d7150db8ce688e8f0d4030e436d8b7ec4e535d48259e |
File details
Details for the file fastapi_sessions-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: fastapi_sessions-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.5 CPython/3.9.1 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6377f67cb731afcfee95c6832fee11c3708534fe7c1d1d6708b723d768c76099 |
|
MD5 | e6706e5ad0cbd9296b753e6494107998 |
|
BLAKE2b-256 | 2f46f5b824770a5415b537f41725e23c585cfc43c82274ed78384947a9d1a68a |