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+.
This library is designed for such frameworks as: FastAPI and Starlette.
Dependencies used support redis version 5.0+
You can install or update starlette-middleware
$ pip install redsession --upgrade
If you want to use orjson and hiredis to maximize performance, use the optional dependencies
$ pip install redsession[opt] --upgrade
You can find more information on usage here.