Zum Inhalt springen

Fastapi Updates & Release Notes

Einträge
82
Quellen
1
Zuletzt aktualisiert

Folge Fastapi, um die Release Notes in deinen Feed zu holen.

Fastapi von Tiangolo

FastAPI 0.140.10: Sequenzen mit verschachtelten Annotated-Typen korrigiert

FastAPI 0.140.10 behebt die Verarbeitung von Sequenzen mit verschachtelten Annotated-Typen.

Fixes

Internal

Originalquelle(öffnet in neuem Tab)Problem melden

Fastapi von Tiangolo

FastAPI 0.140.9: exclude_defaults in jsonable_encoder bei Dictionaries behoben

FastAPI 0.140.9 behebt, dass exclude_defaults in jsonable_encoder nicht auf Schlüssel und Werte von Dictionaries übertragen wurde.

Fixes

  • 🐛 Fix exclude_defaults not propagated to dict keys and values in jsonable_encoder. PR #16043 by @MBGrao.

Internal

Originalquelle(öffnet in neuem Tab)Problem melden

Fastapi von Tiangolo

FastAPI 0.140.7: Schnellere OpenAPI-Erzeugung ohne Abflachen von Dependencies

FastAPI 0.140.7 beschleunigt die OpenAPI-Erzeugung, indem Dependencies nicht mehr abgeflacht werden.

Refactors

  • ⚡️ Avoid flattening dependencies for OpenAPI. PR #16076 by @tiangolo.

Internal

Originalquelle(öffnet in neuem Tab)Problem melden

Fastapi von Tiangolo

FastAPI 0.140.6: Kein Abflachen von Dependencies bei Request-Parametern

FastAPI 0.140.6 vermeidet das Abflachen von Dependencies bei Request-Parametern, vor allem zugunsten von OpenAPI.

Refactors

  • ⚡️ Avoid flattening dependencies for request parameters, mainly for OpenAPI. PR #16073 by @tiangolo.

Originalquelle(öffnet in neuem Tab)Problem melden

Fastapi von Tiangolo

FastAPI 0.140.0: Weniger Speicherverbrauch und erweiterte Dokumentation

FastAPI 0.140.0 reduziert den Speicherverbrauch bei Dependencies und erweitert die Dokumentation unter anderem um Library Skills und uv-Projekte.

Refactors

Docs

Internal

Originalquelle(öffnet in neuem Tab)Problem melden

Fastapi von Tiangolo

FastAPI 0.139.2: Threadsicherer Aufbau von Router-Routen

FastAPI 0.139.2 baut Router-Routen threadsicher auf, was vor allem für parallel in Threads laufende Tests relevant ist.

Fixes

  • 🐛 Refactor router route building to make it thread-safe, mainly relevant for tests running in parallel threads (uncommon). PR #16013 by @tiangolo.

Originalquelle(öffnet in neuem Tab)Problem melden

Fastapi von Tiangolo

FastAPI 0.139.1: Frontend-Fallback für Pfade mit Punkt behoben

FastAPI 0.139.1 behebt den Frontend-Fallback für Pfade mit Punkt wie /users/john.doe, korrigiert die Dokumentation (Themen-Repository-Liste und skip_users) und aktualisiert Übersetzungen mehrerer Sprachen.

Fixes

  • 🐛 Fix frontend fallback support for doted paths like /users/john.doe. PR #16011 by @tiangolo.

Docs

  • 📝 Fix topic repository list not being displayed and skip_users not being applied. PR #15995 by @YuriiMotov.

Translations

  • 🌐 Update translations for tr (update-outdated). PR #16005 by @tiangolo.
  • 🌐 Update translations for zh-hant (update-outdated). PR #15996 by @tiangolo.
  • 🌐 Update translations for fr (update-outdated). PR #16006 by @tiangolo.
  • 🌐 Update translations for de (update-outdated). PR #15999 by @tiangolo.
  • 🌐 Update translations for ko (update-outdated). PR #16004 by @tiangolo.
  • 🌐 Update translations for zh (update-outdated). PR #16001 by @tiangolo. …

Originalquelle(öffnet in neuem Tab)Problem melden

Fastapi von Tiangolo

FastAPI Version 0.139.0

Unterstützt Abhängigkeiten in app.frontend(), zum Beispiel für automatische Cookie-Authentifizierung.

Features

  • ✨ Support dependencies in app.frontend(), e.g. for automatic cookie authentication for the frontend. PR #15908 by @tiangolo.

Translations

  • 🌐 Update translations for fr (update-outdated). PR #15897 by @tiangolo.
  • 🌐 Update translations for ja (update-outdated). PR #15895 by @tiangolo.
  • 🌐 Update translations for zh-hant (update-outdated). PR #15896 by @tiangolo.
  • 🌐 Update translations for de (update-outdated). PR #15899 by @tiangolo.
  • 🌐 Update translations for es (update-outdated). PR #15892 by @tiangolo.
  • 🌐 Update translations for tr (update-outdated). PR #15891 by @tiangolo.
  • 🌐 Update translations for pt (update-outdated). PR #15893 by @tiangolo. …

Originalquelle(öffnet in neuem Tab)Problem melden

Fastapi von Tiangolo

FastAPI Version 0.138.2

app.frontend() gibt für andere Methoden als GET oder HEAD ohne passende statische Datei nun 404 zurück.

Refactors

  • ♻️ Make app.frontend() return 404 for methods other than GET or HEAD with no static file matches. PR #15863 by @tiangolo.

Internal

Originalquelle(öffnet in neuem Tab)Problem melden

Fastapi von Tiangolo

FastAPI Version 0.138.1

Library Skills wurden umstrukturiert, um Informationen für Agenten leichter auffindbar zu machen.

Refactors

  • ♻️ Refactor Library Skills, make info easier to find for agents. PR #15841 by @tiangolo.

Internal

Originalquelle(öffnet in neuem Tab)Problem melden

Fastapi von Tiangolo

FastAPI 0.138.0

Die neue Version unterstützt das Einbinden eines Frontends über app.frontend() und router.frontend() und aktiviert die Hindi-Dokumentationsübersetzungen.

Features

  • ✨ Add support for app.frontend("/", directory="dist") and router.frontend("/", directory="dist"). PR #15800 by @tiangolo.

Docs

Translations

Internal

  • 🐛 Fix failing test, update format for raised errors. PR #15804 by @tiangolo. …

Originalquelle(öffnet in neuem Tab)Problem melden

Fastapi von Tiangolo

FastAPI 0.137.2

Die neue Funktion iter_route_contexts() wird für fortgeschrittene Anwendungsfälle hinzugefügt, die zuvor router.routes verwendeten.

Features

  • ✨ Add iter_route_contexts() for advanced use cases that used to use router.routes (e.g. Jupyverse). PR #15785 by @tiangolo.

Translations

  • 🌐 Fix broken Markdown in Korean custom response docs. PR #15774 by @kooqooo.
  • 🌐 Update translations for fr (update-outdated). PR #15761 by @tiangolo.
  • 🌐 Update translations for zh-hant (update-outdated). PR #15760 by @tiangolo.
  • 🌐 Update translations for de (update-outdated). PR #15759 by @tiangolo.
  • 🌐 Update translations for ko (update-outdated). PR #15757 by @tiangolo.
  • 🌐 Update translations for uk (update-outdated). PR #15756 by @tiangolo.
  • 🌐 Update translations for zh (update-outdated). PR #15755 by @tiangolo. …

Originalquelle(öffnet in neuem Tab)Problem melden

Fastapi von Tiangolo

FastAPI 0.137.0

Interne Refaktorierung, damit APIRouter- und APIRoute-Instanzen erhalten bleiben; router.routes kann nun auch Zwischenobjekte enthalten.

Breaking Changes

  • ♻️ Refactor internals to preserve APIRouter and APIRoute instances. PR #15745 by @tiangolo.

Unblocks ✨ SO MANY THINGS ✨

Before this, router.include_router(other_router) would take each path operation from other_router and "clone" it, or recreate it from scratch.

This would mean that in the end there was only one top level router, part of the app.

The way it is structured here is that there are a few additional classes to handle intermediate metadata for router and route inclusion. That way the information of "router X includes Y and Y includes Z" is stored somewhere, without affecting (recreating / clonning) the final route.

Non Objectives

Dependencies for 404: previously I intended to support dependencies that would be executed even for 404, but that would conflict with the fact that a router could not find a match, but the next router did find a match. Executing dependencies in the router that did not find a match would not make sense, they could consume the request, body, etc. This original idea was discarded.

Specific Breaking Changes

Now router.routes is no longer a plain list of APIRoute objects, it can contain these intermediate objects that can contain additional routers, forming a tree. …

Originalquelle(öffnet in neuem Tab)Problem melden