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.0.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.0-py3-none-any.whl (31.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: auth_fastapi-1.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 d9e75dff0bb5e51453295228ef26b14d4bf84d6e52d11d23e9a912ba6ea07253
MD5 5bab14126961da2e3c8fbe6ba421cfd5
BLAKE2b-256 8e9b95a003cfc413186120672d6ca72c3b92075e5fcd9420356564bcc3b4c5ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: auth_fastapi-1.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 66c35e461ec54c0307342963c697468ea10afd5f3bb784c04fbde67588f55a43
MD5 200a98b5efd549b15f37d4e25bcb5da9
BLAKE2b-256 4bc24357cf7447cf3ad743ac2bd4c5e3f7989a9261ee2ddd6eaa6057d88acb03

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