/authx-extra

Extra utilities for authx, including session, profiler & caching ✨

Primary LanguagePythonMIT LicenseMIT

authx-extra 💫

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

Links 🚧

License 📝

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