Skip to main content

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

fastapi-sessions-0.2.0.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

fastapi_sessions-0.2.0-py3-none-any.whl (5.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page