Skip to main content

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-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/

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.3.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

fastapi_sessions-0.3.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file fastapi-sessions-0.3.1.tar.gz.

File metadata

  • Download URL: fastapi-sessions-0.3.1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.8.9 Linux/5.10.62

File hashes

Hashes for fastapi-sessions-0.3.1.tar.gz
Algorithm Hash digest
SHA256 abbde76f35685e7c4fe3d08a91b4a143714e5cc1a50ec916b7a7503b6fb5d63f
MD5 7a42edcbef59aac8d4a0395801de4560
BLAKE2b-256 2da5ac409edbb713ecb09174746b986aa81e1f18820216a5cd636cf752cc2885

See more details on using hashes here.

File details

Details for the file fastapi_sessions-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for fastapi_sessions-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 275ffa1218025f7534c496df851ccb9fdee53a5079790fcd1edfdd0cd9889d75
MD5 3dd122931b6a48276d6377eb5b35c5be
BLAKE2b-256 3d196e5f7b22589078352ad6f92d703cbceb0653d39fe7261f53af7d31b668ee

See more details on using hashes here.

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