From 064edcc40c73463ec4438d2cc47db899ab51e12d Mon Sep 17 00:00:00 2001 From: Hasier Date: Tue, 4 Jun 2024 15:52:50 +0100 Subject: [PATCH] Mention new extras in README --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 845b7f2..aee6349 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,16 @@ PyPI: https://pypi.org/project/fastapi-injector/ pip install fastapi-injector ``` +`fastapi-injector` relies on your project using FastAPI as a dependency separately, but you can also get it installed automatically by using any of the extras. + +```shell +# Installs `fastapi` +pip install fastapi-injector[standard] + +# Installs `fastapi-slim` +pip install fastapi-injector[slim] +``` + ## Usage When creating your FastAPI app, attach the injector to it: