pypi fastapi 0.112.0

latest releases: 0.115.4, 0.115.3, 0.115.2...
3 months ago

Breaking Changes

  • ♻️ Add support for pip install "fastapi[standard]" with standard dependencies and python -m fastapi. PR #11935 by @tiangolo.

Summary

Install with:

pip install "fastapi[standard]"

Other Changes

  • This adds support for calling the CLI as:
python -m python
  • And it upgrades fastapi-cli[standard] >=0.0.5.

Technical Details

Before this, fastapi would include the standard dependencies, with Uvicorn and the fastapi-cli, etc.

And fastapi-slim would not include those standard dependencies.

Now fastapi doesn't include those standard dependencies unless you install with pip install "fastapi[standard]".

Before, you would install pip install fastapi, now you should include the standard optional dependencies (unless you want to exclude one of those): pip install "fastapi[standard]".

This change is because having the standard optional dependencies installed by default was being inconvenient to several users, and having to install instead fastapi-slim was not being a feasible solution.

Discussed here: #11522 and here: #11525

Docs

Translations

  • 🌐 Update Portuguese translation for docs/pt/docs/alternatives.md. PR #11931 by @ceb10n.
  • 🌐 Add Russian translation for docs/ru/docs/tutorial/dependencies/sub-dependencies.md. PR #10515 by @AlertRED.
  • 🌐 Add Portuguese translation for docs/pt/docs/advanced/response-change-status-code.md. PR #11863 by @ceb10n.
  • 🌐 Add Portuguese translation for docs/pt/docs/reference/background.md. PR #11849 by @lucasbalieiro.
  • 🌐 Add Portuguese translation for docs/pt/docs/tutorial/dependencies/dependencies-with-yield.md. PR #11848 by @Joao-Pedro-P-Holanda.
  • 🌐 Add Portuguese translation for docs/pt/docs/reference/apirouter.md. PR #11843 by @lucasbalieiro.

Internal

  • 🔧 Update sponsors: add liblab. PR #11934 by @tiangolo.
  • 👷 Update GitHub Action label-approved permissions. PR #11933 by @tiangolo.
  • 👷 Refactor GitHub Action to comment docs deployment URLs and update token. PR #11925 by @tiangolo.
  • 👷 Update tokens for GitHub Actions. PR #11924 by @tiangolo.
  • 👷 Update token permissions to comment deployment URL in docs. PR #11917 by @tiangolo.
  • 👷 Update token permissions for GitHub Actions. PR #11915 by @tiangolo.
  • 👷 Update GitHub Actions token usage. PR #11914 by @tiangolo.
  • 👷 Update GitHub Action to notify translations with label approved-1. PR #11907 by @tiangolo.
  • 🔧 Update sponsors, remove Reflex. PR #11875 by @tiangolo.
  • 🔧 Update sponsors: remove TalkPython. PR #11861 by @tiangolo.
  • 🔨 Update docs Termynal scripts to not include line nums for local dev. PR #11854 by @tiangolo.

Don't miss a new fastapi release

NewReleases is sending notifications on new releases.