Skip to main content

Authentication library for FastAPI for fast migration from Django/DRF. Serializers, signals, permissions, pagination and filters included.

Project description

PyPI version Downloads

FastAPI-Auth

FastAPI-Auth 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.

Features

  • Pagination
  • Filtering
  • JWT Token-based Authentication
  • Endpoint Permissions
  • Serializers
  • Signals
  • Secret Key Generation

Installation

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.

Examples

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

Contributors

zayycev22
zayycev22

BednyYorik
BednyYorik

ck1999
ck1999
Dragonfl1ght
Dragonfl1ght

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

auth_fastapi-1.0.2.tar.gz (104.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

auth_fastapi-1.0.2-py3-none-any.whl (31.6 kB view details)

Uploaded Python 3

File details

Details for the file auth_fastapi-1.0.2.tar.gz.

File metadata

  • Download URL: auth_fastapi-1.0.2.tar.gz
  • Upload date:
  • Size: 104.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for auth_fastapi-1.0.2.tar.gz
Algorithm Hash digest
SHA256 f6e47805e3ade3b19ea5c6759275acc580e3cbe9a4aec62924a13c3bdbbcc98d
MD5 23465b4f458ff7b24cb4e010de0bfc00
BLAKE2b-256 43c76844c1a4df58f1e35ee930f74b3d0cb329e3ed96d4ce007dfa67db62dd8c

See more details on using hashes here.

File details

Details for the file auth_fastapi-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: auth_fastapi-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 31.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for auth_fastapi-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 16d279c6887d13d6e43bc2fdc742505793fb06c9e04e4bb0b60772904027633a
MD5 fb32e220b40fcfdbce3a784ee6956981
BLAKE2b-256 d172ad516b1dc8bf266d96cca9fc458dede95c69e20c11fc4c13d3c582e79ccf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page