tiangolo / fastapi

FastAPI framework, high performance, easy to learn, fast to code, ready for production
https://fastapi.tiangolo.com/
MIT License
73.34k stars 6.18k forks source link

🔧 Add configs and setup for `fastapi-slim` including optional extras `fastapi-slim[standard]`, and `fastapi` including by default the same `standard` extras #11503

Closed tiangolo closed 2 months ago

tiangolo commented 2 months ago

🔧 Add configs and setup for fastapi-slim including optional extras fastapi-slim[standard], and fastapi including by default the same standard extras

The fastapi package now includes the standard default recommended packages, and fastapi-slim comes without those recommended standard packages and with a group of optional dependencies fastapi-slim[standard], equivalent to fastapi, for those that want to opt out of those default standard packages.

tiangolo commented 2 months ago

📝 Docs preview for commit 79621a3acefddaadbc6a9933338f52e0cdde1a82 at: https://28bb498b.fastapitiangolo.pages.dev

noklam commented 3 weeks ago

Hi! https://discuss.python.org/t/optional-dependency-groups-omitting-package-requirements/20833 brought me to here as I am researching how to split out some optional dependencies in a nice way.

I see that you have taken a custom approach, here is what I understand:

I have a few questions:

edouardlp commented 2 weeks ago

This PR causes issues for library maintainers. See https://github.com/tiangolo/fastapi/discussions/11733