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.3.tar.gz (104.8 kB view details)

Uploaded Source

Built Distribution

auth_fastapi-1.0.3-py3-none-any.whl (31.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for auth_fastapi-1.0.3.tar.gz
Algorithm Hash digest
SHA256 79c4301d38df36cd4ebd06ce602437e1047d8607dd97c1877ef0fa854337888a
MD5 848a1f955684437f1f9f59ad6ade28aa
BLAKE2b-256 3fe6481254273f3195463240419f465c504cf16b0f217b6a096679fac6f3c2b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for auth_fastapi-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a6b50c7efd85067efd55cf551af733eddff7e6937110f4b8534300b6876c3399
MD5 1d400a62e39cb9a5f3679e85b235dbb8
BLAKE2b-256 115db9a9d7476e9293360da806334ad2cf8d460545faa5a285eb90100523cf6d

See more details on using hashes here.

Supported by

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