aioauth-1.5.1
توضیحات
Asynchronous OAuth 2.0 framework for Python 3.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | aioauth-1.5.1 |
| نام | aioauth |
| نسخه کتابخانه | 1.5.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Ali Aliyev |
| ایمیل نویسنده | ali@aliev.me |
| آدرس صفحه اصلی | https://github.com/aliev/aioauth |
| آدرس اینترنتی | https://pypi.org/project/aioauth/ |
| مجوز | The MIT License (MIT) |
## Asynchronous OAuth 2.0 framework for Python 3
[](https://github.com/aliev/aioauth/actions/workflows/ci.yml?query=branch%3Amaster)
[](https://app.codecov.io/gh/aliev/aioauth)
[](https://github.com/aliev/aioauth/blob/master/LICENSE)
[](https://pypi.org/project/aioauth/)
[](https://www.python.org/downloads/release/python-370/)
`aioauth` implements [OAuth 2.0 protocol](https://tools.ietf.org/html/rfc6749) and can be used in asynchronous frameworks like [FastAPI / Starlette](https://github.com/tiangolo/fastapi), [aiohttp](https://github.com/aio-libs/aiohttp). It can work with any databases like `MongoDB`, `PostgreSQL`, `MySQL` and ORMs like [gino](https://python-gino.org/), [sqlalchemy](https://www.sqlalchemy.org/) or [databases](https://pypi.org/project/databases/) over simple [BaseStorage](aioauth/storage.py) interface.
## Why this project exists?
There are few great OAuth frameworks for Python like [oauthlib](https://github.com/oauthlib/oauthlib) and [authlib](https://github.com/lepture/authlib), but they do not support asyncio and rewriting these libraries to asyncio is a significant challenge (see issues [here](https://github.com/lepture/authlib/issues/63) and [here](https://github.com/oauthlib/oauthlib/issues/415)).
## Supported RFCs
- [x] [The OAuth 2.0 Authorization Framework](https://tools.ietf.org/html/rfc6749)
- [X] [OAuth 2.0 Token Introspection](https://tools.ietf.org/html/rfc7662)
- [X] [Proof Key for Code Exchange by OAuth Public Clients](https://tools.ietf.org/html/rfc7636)
- [x] OpenID support
## Installation
```
python -m pip install aioauth
```
## FastAPI
FastAPI integration stored on separated [aioauth-fastapi](https://github.com/aliev/aioauth-fastapi) repository and can be installed via the command:
```
python -m pip install aioauth[fastapi]
```
[aioauth-fastapi](https://github.com/aliev/aioauth-fastapi) repository contains demo example which I recommend to look.
## [API Reference and User Guide](https://aliev.me/aioauth/)
نیازمندی
| مقدار | نام |
|---|---|
| - | typing-extensions |
| ==1.4.8 | async-asgi-testclient |
| ==2.16.0 | pre-commit |
| ==6.2.5 | pytest |
| ==0.16.0 | pytest-asyncio |
| ==3.0.0 | pytest-cov |
| ==0.6.2 | pytest-env |
| ==0.9.4 | pytest-sugar |
| ==6.18.3 | testfixtures |
| ==1.0.1 | bump2version |
| ==3.7.1 | twine |
| - | wheel |
| - | sphinx |
| - | sphinx-copybutton |
| - | sphinx-autobuild |
| - | m2r2 |
| - | sphinx-rtd-theme |
| ==1.4.8 | async-asgi-testclient |
| ==2.16.0 | pre-commit |
| ==6.2.5 | pytest |
| ==0.16.0 | pytest-asyncio |
| ==3.0.0 | pytest-cov |
| ==0.6.2 | pytest-env |
| ==0.9.4 | pytest-sugar |
| ==6.18.3 | testfixtures |
| ==1.0.1 | bump2version |
| ==3.7.1 | twine |
| - | wheel |
| >=0.0.1 | aioauth-fastapi |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7.0 | Python |
نحوه نصب
نصب پکیج whl aioauth-1.5.1:
pip install aioauth-1.5.1.whl
نصب پکیج tar.gz aioauth-1.5.1:
pip install aioauth-1.5.1.tar.gz