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://frankie567.github.io/fastapi-users/
Source Code: https://github.com/frankie567/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.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd2911bb0e1d928971af7d8b2dd67b664094326103fadba6b4f6755b503235bd |
|
MD5 | 242087fce9207a9998912470407f7566 |
|
BLAKE2b-256 | b4b7743c65c0456646b8cb6abdc3c46c9d54711e8c613d80ad905a82bb2ed6fa |
Hashes for fastapi_users_db_mongodb-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 086e828bd2ca4a06a57d6d418647217f060e3110283381868e9213238e2e93cc |
|
MD5 | 086c202fe1562ee4ffa9dd15dc999903 |
|
BLAKE2b-256 | 369abfd6277e010468dc5a70171b8d697ed7d9e7d5a65ccb0a3ddaa3efa29d62 |