authx-extra ๐Ÿ’ซ

January 5, 2024 ยท View on GitHub

AuthX

Extra utilities for authx, including session, profiler & caching โœจ

ci Package version


Source Code: https://github.com/yezz123/authx-extra

Documentation: https://authx.yezz.me/


Features ๐Ÿ”ง

  • Using Redis as a session store & cache.
  • Support HTTPCache.
  • Support Sessions and Pre-built CRUD functions and Instance to launch Redis.
  • Support Middleware of pyinstrument to check your service performance.
  • Support Middleware for collecting and exposing Prometheus metrics.

Development ๐Ÿšง

Setup environment ๐Ÿ“ฆ

You should create a virtual environment and activate it:

python -m venv venv/
source venv/bin/activate

And then install the development dependencies:

# Install dependencies
pip install -e .[test,lint]

Run tests ๐ŸŒ

You can run all the tests with:

bash scripts/docker.sh

Format the code ๐Ÿ‚

Execute the following command to apply pre-commit formatting:

bash scripts/format.sh

License ๐Ÿ“

This project is licensed under the terms of the MIT License.