Skip to main content

FastAPI Users database adapter for MongoDB.

Project description

FastAPI Users - Database adapter for MongoDB

FastAPI Users

Ready-to-use and customizable users management for FastAPI

build codecov PyPI version Downloads


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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastapi-users-db-mongodb-1.1.0.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastapi_users_db_mongodb-1.1.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file fastapi-users-db-mongodb-1.1.0.tar.gz.

File metadata

File hashes

Hashes for fastapi-users-db-mongodb-1.1.0.tar.gz
Algorithm Hash digest
SHA256 d71519999d9e35b3c8c90f8f7ca670f28055e9da63b10e8c9548c82e3679af10
MD5 642ecf5573f9f21497b9d32acf3013fc
BLAKE2b-256 588700a1d8b6ce3ff11b01f321d87cfb54e9def56b07f5186209324cf80de2ba

See more details on using hashes here.

File details

Details for the file fastapi_users_db_mongodb-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for fastapi_users_db_mongodb-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b032447f1fe42e596a88bd45cf343125ddb302a5f0e61b70ca7f4a31c26d1c1c
MD5 1ee57947087a07ab7d9237a4286320e9
BLAKE2b-256 361ed055447c6acba13c1339b7b8ac65f633be715caa3df78ad3b08550491c8f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page