Metadata-Version: 2.3
Name: auth_fastapi
Version: 1.0.2
Summary: Authentication library for FastAPI for fast migration from Django/DRF. Serializers, signals, permissions, pagination and filters included.
Project-URL: Source, https://github.com/zayycev22/fastapi-auth
Author: zayycev22
Classifier: Framework :: FastAPI
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.10
Requires-Dist: bcrypt>=4.1.2
Requires-Dist: email-validator>=2.0.0
Requires-Dist: fastapi>=0.110.0
Requires-Dist: passlib>=1.7.4
Requires-Dist: pydantic>=2.6.3
Requires-Dist: pyjwt[crypto]>=2.8.0
Requires-Dist: typing-extensions
Provides-Extra: sqlalchemy
Requires-Dist: fastapi-auth-sqlalchemy-models>=0.0.3; extra == 'sqlalchemy'
Provides-Extra: tortoise
Requires-Dist: fastapi-auth-tortoise-models>=0.0.6; extra == 'tortoise'
Description-Content-Type: text/markdown

[![PyPI version](https://badge.fury.io/py/auth_fastapi.svg)](https://badge.fury.io/py/auth_fastapi)
[![Downloads](https://static.pepy.tech/badge/auth_fastapi)](https://pepy.tech/project/auth_fastapi)

# FastAPI-Auth
![FastAPI-Auth](logo.png)
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

* [X] Pagination
* [X] Filtering
* [X] JWT Token-based Authentication
* [X] Endpoint Permissions
* [X] Serializers
* [X] Signals
* [X] Secret Key Generation

## Installation

For SQL Alchemy ORM:

```bash
pip install auth_fastapi[sqlalchemy]
```

For Tortoise ORM:

```bash
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

<table>
  <tbody>
    <tr>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/zayycev22"><img src="https://avatars.githubusercontent.com/zayycev22?v=4?s=100" width="100px;" alt="zayycev22"/><br /><sub><b>zayycev22</b></sub></a><br /></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/BednyYorik"><img src="https://avatars.githubusercontent.com/BednyYorik?v=4?s=100" width="100px;" alt="BednyYorik"/><br /><sub><b>BednyYorik</b></sub></a><br /></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/ck1999"><img src="https://avatars.githubusercontent.com/ck1999?v=4?s=100" width="100px;" alt="ck1999"/><br><sub><b>ck1999</b></sub></a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/Dragonfl1ght"><img src="https://avatars.githubusercontent.com/Dragonfl1ght?s=4?s=100" width="100px;" alt="Dragonfl1ght"/><br /><sub><b>Dragonfl1ght</b></sub></a><br /></td>
    </tr>
    </tbody>
</table>