FastAPI Users - Database adapter for MongoDB
Ready-to-use and customizable users management for FastAPI
Documentation: https://fastapi-users.github.io/fastapi-users/
Source Code: https://github.com/fastapi-users/fastapi-users
Add quickly a registration and authentication system to your FastAPI project. FastAPI Users is designed to be as customizable and adaptable as possible.
Sub-package for MongoDB support in FastAPI Users.
Development
Setup environment
You should create a virtual environment and activate it:
python -m venv venv/
source venv/bin/activate
And then install the development dependencies:
pip install -r requirements.dev.txt
Run unit tests
You can run all the tests with:
make test
The command will start a MongoDB container for the related unit tests. So you should have Docker installed.
Alternatively, you can run pytest yourself:
pytest
There are quite a few unit tests, so you might run into ulimit issues where there are too many open file descriptors. You may be able to set a new, higher limit temporarily with:
ulimit -n 2048
Format the code
Execute the following command to apply isort and black formatting:
make format
License
This project is licensed under the terms of the MIT license.
Metadata
Release files for fastapi-users-db-mongodb 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fastapi-users-db-mongodb-1.1.0.tar.gz | 10.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fastapi_users_db_mongodb-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.1 kB
Release files / fastapi-users-db-mongodb-1.1.0.tar.gz
| Download URL | fastapi-users-db-mongodb-1.1.0.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d71519999d9e35b3c8c90f8f7ca670f28055e9da63b10e8c9548c82e3679af10
|
|
BLAKE2b-256 checksum How to use checksums |
588700a1d8b6ce3ff11b01f321d87cfb54e9def56b07f5186209324cf80de2ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.26.0
|
Release files / fastapi_users_db_mongodb-1.1.0-py3-none-any.whl
| Download URL | fastapi_users_db_mongodb-1.1.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b032447f1fe42e596a88bd45cf343125ddb302a5f0e61b70ca7f4a31c26d1c1c
|
|
BLAKE2b-256 checksum How to use checksums |
361ed055447c6acba13c1339b7b8ac65f633be715caa3df78ad3b08550491c8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.26.0
|