FastAPI-Auth is an authentication library built upon the principles of Django and fastapi-users frameworks, designed for seamless migration from Django to FastAPI.
It supports multiple ORMs including SQL Alchemy and Tortoise ORM, with plans for SQL model support in the future.
- Pagination
- Filtering
- JWT Token-based Authentication
- Endpoint Permissions
- Serializers
- Signals
- Secret Key Generation
For SQL Alchemy ORM:
pip install auth_fastapi[sqlalchemy]
For Tortoise ORM:
pip install auth_fastapi[tortoise]
Note: The package is named auth_fastapi because fastapi-auth already exists.
FastAPI-auth with Tortoise ORM https://github.com/zayycev22/fastapi_auth_tortoise_example
FastAPI-auth with SqlAlchemy ORM https://github.com/zayycev22/fastapi_auth_sqlalchemy_example
zayycev22 |
BednyYorik |
ck1999 |
Dragonfl1ght |