FastAPI Users database adapter for MongoDB.
Project description
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.
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
Built Distribution
Hashes for fastapi-users-db-mongodb-1.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d71519999d9e35b3c8c90f8f7ca670f28055e9da63b10e8c9548c82e3679af10 |
|
MD5 | 642ecf5573f9f21497b9d32acf3013fc |
|
BLAKE2b-256 | 588700a1d8b6ce3ff11b01f321d87cfb54e9def56b07f5186209324cf80de2ba |
Hashes for fastapi_users_db_mongodb-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b032447f1fe42e596a88bd45cf343125ddb302a5f0e61b70ca7f4a31c26d1c1c |
|
MD5 | 1ee57947087a07ab7d9237a4286320e9 |
|
BLAKE2b-256 | 361ed055447c6acba13c1339b7b8ac65f633be715caa3df78ad3b08550491c8f |