semvec/pypi-packages huggingface dataset:
redsession 1.4.0
Simple and fast server session middleware for FastAPI and Starlette
Requires Python: >=3.8

.. image:: https://raw.githubusercontent.com/TheJecksMan/red-session/main/docs/_static/logo_lib.png
   :align: center
   :alt: red-session logo
   :width: 200

.. image:: https://img.shields.io/pypi/pyversions/redsession
   :target: https://pypi.org/project/redsession/
   :alt: PyPI - Python Version

.. image:: https://img.shields.io/pypi/l/redsession
   :target: https://pypi.org/project/redsession/
   :alt: PyPI - License

.. image:: https://img.shields.io/pypi/v/redsession
   :target: https://pypi.org/project/redsession/
   :alt: PyPI

.. image:: https://readthedocs.org/projects/red-session/badge/?version=latest
   :target: https://red-session.readthedocs.io/en/latest/?badge=latest
   :alt: Documentation Status


Introduction
============

This async library provides the ability to quickly integrate server sessions into
your application through the use of middleware. The library is compatible with python 3.8+.


Note
----

This library is designed for such frameworks as: **FastAPI and Starlette**.

Dependencies used support redis version 5.0+

Installation
============

You can install or update starlette-middleware

.. code:: shell

    $ pip install redsession --upgrade


If you want to use `orjson` and `hiredis` to maximize performance, use the optional dependencies

.. code:: shell

    $ pip install redsession[opt] --upgrade

Documentation
=============

You can find more information on usage `here <https://red-session.readthedocs.io/en/stable/>`_.