FastAPI Users database adapter for MongoDB.
Project description
FastAPI Users - Database adapter for MongoDB
This is a fork of the driver to deploy with CosmosDB Mongo Driver
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-azure-1.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9e49478a5473f884e7c2685bbfca0ba30721a919daafbb2b51bac0e231c6b77 |
|
MD5 | a023662a78c83d52440ad2e112d199b6 |
|
BLAKE2b-256 | ec45fff1ea9baeebca72b7e5e58afc16c42df4a4b6835e2fffd98898d6d0cfb3 |
Hashes for fastapi_users_db_mongodb_azure-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99042ff8ef2f00da81ef8b5de5176ac81ef88ddbe85be0f901bf524882cc5db9 |
|
MD5 | 473c0c15041b77899f653d32a567f9f1 |
|
BLAKE2b-256 | 78d6fba310b31263e371dc2b619fd360b86c7aacb7049aa9cb2e08c8b20bbc0f |