python FastAPI Releases · · 0.137.2

FastAPI 0.137.2: New route context iterator and dependency updates

sdkengineerpython-web
feature patch

FastAPI version 0.137.2 introduces a new `iter_route_contexts()` method for advanced use cases, enhancing flexibility for developers. This patch also includes dependency updates for several core packages like Starlette and cryptography, as well as numerous translation updates. These changes primarily affect developers using FastAPI, offering improved internal handling and tooling.

  • ✨ Add iter_route_contexts() for advanced use cases that used to use router.routes (e.g. Jupyverse). PR #15785 by @tiangolo
  • 🔧 Update sponsors: add BairesDev. PR #15787 by @tiangolo
  • 🔨 Update sponsors script to simplify previews. PR #15786 by @tiangolo
  • ⬆ Bump the python-packages group across 1 directory with 7 updates. PR #15777 by [@dependabot[bot]](https://github.com/apps/dependabot)
  • ⬆ Bump cryptography from 46.0.7 to 48.0.1. PR #15779 by [@dependabot[bot]](https://github.com/apps/dependabot)
Features (1)
  • ✨ Add iter_route_contexts() for advanced use cases that used to use router.routes (e.g. Jupyverse). PR #15785 by @tiangolo
Maintenance (13)
  • 🔧 Update sponsors: add BairesDev. PR #15787 by @tiangolo
  • 🔨 Update sponsors script to simplify previews. PR #15786 by @tiangolo
  • ⬆ Bump the python-packages group across 1 directory with 7 updates. PR #15777 by [@dependabot[bot]](https://github.com/apps/dependabot)
  • ⬆ Bump cryptography from 46.0.7 to 48.0.1. PR #15779 by [@dependabot[bot]](https://github.com/apps/dependabot)
  • ⬆ Bump aiohttp from 3.14.0 to 3.14.1. PR #15781 by [@dependabot[bot]](https://github.com/apps/dependabot)
  • ⬆ Bump starlette from 1.2.1 to 1.3.1. PR #15780 by [@dependabot[bot]](https://github.com/apps/dependabot)
  • ⬆ Bump astral-sh/setup-uv from 8.1.0 to 8.2.0 in the github-actions group. PR #15776 by [@dependabot[bot]](https://github.com/apps/dependabot)

  • ⬆ Bump https://github.com/crate-ci/typos from v1.47.1 to v1.47.2 in the pre-commit group. PR #15775 by [@dependabot[bot]](https://github.com/apps/dependabot)

  • ⬆ Bump python-multipart from 0.0.30 to 0.0.32. PR #15778 by [@dependabot[bot]](https://github.com/apps/dependabot)
  • ⏪️ Revert removing scripts, only remove coverage.sh. PR #15772 by @tiangolo
  • 🔥 Remove unused scripts. PR #15771 by @tiangolo
  • 🔧 Add ty configs to check docs sources. PR #15770 by @tiangolo
  • 🔧 Add ty configs to check docs sources. PR #15769 by @tiangolo
Read the original announcement →

https://github.com/fastapi/fastapi/releases/tag/0.137.2

Related releases