mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2025-08-15 11:11:16 +08:00

* add tortoise to dependencies * add tortoise as optional dependency in pyproject.toml * add tortoise support (tests needed) * Add tortoise support (also defined orm_mode in pydantic model * tests for tortoise support * format by black * docs for tortoise * delete type annotations * delete underscore * do it in 1 line * add 1 line before yield * fix in docs * fix bug and add annotation for test * Tweak documentation and fix Tortoise error about id update * Improve Tortoise coverage by using get instead of filter * Fix Pipfile.lock
445 B
445 B
Installation
You can add FastAPI Users to your FastAPI project in a few easy steps. First of all, install the dependency:
With SQLAlchemy support
pip install fastapi-users[sqlalchemy]
With MongoDB support
pip install fastapi-users[mongodb]
With Tortoise ORM support
pip install fastapi-users[tortoise-orm]
That's it! Now, let's have a look at our User model.