Files
fastapi-users/docs/installation.md
François Voron 72aa68c462 Native model and generic ID (#971)
* Use a generic Protocol model for User instead of Pydantic

* Remove UserDB Pydantic schema

* Harmonize schema variable naming to avoid confusions

* Revamp OAuth account model management

* Revamp AccessToken DB strategy to adopt generic model approach

* Make ID a generic instead of forcing UUIDs

* Improve generic typing

* Improve Strategy typing

* Tweak base DB typing

* Don't set Pydantic schemas on FastAPIUsers class: pass it directly on router creation

* Add IntegerIdMixin and export related classes

* Start to revamp doc for V10

* Revamp OAuth documentation

* Fix code highlights

* Write the 9.x.x ➡️ 10.x.x migration doc

* Fix pyproject.toml
2022-05-05 14:51:19 +02:00

392 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 Beanie support

pip install 'fastapi-users[mongodb]'

That's it! In the next section, we'll have an overview of how things work.