No project description provided
Project description
FastAPI-Pydentity
Ready-to-use and customizable users management for FastAPI
Installation
First you have to install fastapi-pydentity
like this:
pip install fastapi-pydentity
You can also install with your db adapter:
For SQLAlchemy:
pip install fastapi-pydentity[sqlalchemy]
For Tortoise ORM:
pip install fastapi-pydentity[tortoise]
...
app = FastAPI()
add_default_identity(get_user_store, get_role_store)
use_authentication(app)
use_authorization(app)
...
app.include_router(account_router)
app.include_router(data_router)
NOTE: Pydentity is configured before defining routes.
Features
- Customizable dependency
- Customizable authentication:
- Cookie
- Bearer
- Customizable authorization:
- Roles
- Policy
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fastapi_pydentity-0.2.1.tar.gz
(28.5 kB
view details)
Built Distribution
File details
Details for the file fastapi_pydentity-0.2.1.tar.gz
.
File metadata
- Download URL: fastapi_pydentity-0.2.1.tar.gz
- Upload date:
- Size: 28.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.12.7 Windows/11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ec1700b8ee62402c8145b1444e070ef9e695d5567fd20821b64e5573d7633f8 |
|
MD5 | ad10b4566da49840d038ffef5ede0cdc |
|
BLAKE2b-256 | f22c3bb745ee95b4820c87475db765b13f1f68d18276cc3ee0c13891ff888647 |
File details
Details for the file fastapi_pydentity-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: fastapi_pydentity-0.2.1-py3-none-any.whl
- Upload date:
- Size: 34.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.12.7 Windows/11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80f2ce2efb315b905253b21d039f93bd5eed06deaf93d7f25d9c7a51f43b6b43 |
|
MD5 | 018d3b4fc39d3682054b050336b647ba |
|
BLAKE2b-256 | bfefa6eee281c2684be5c3d9849732e496965ae3aa175bf060a4d497397e5436 |