Skip to content

Glossary: Software Design Patterns

Depends

Also written: FastAPI Depends

A FastAPI feature that calls a named function for each request and passes the result into your route function. It is dependency injection, much like a pytest fixture.

Where the book teaches it

Related terms

FastAPI and DjangoDependency injectionFixture