pypi fastapi 0.82.0

latest releases: 0.111.0, 0.111.0.dev1, 0.110.3...
22 months ago

🚨 This is probably the last release (or one of the last releases) to support Python 3.6. 🔥

Python 3.6 reached the end-of-life and is no longer supported by Python since around a year ago.

You hopefully updated to a supported version of Python a while ago. If you haven't, you really should.

Features

  • ✨ Export WebSocketState in fastapi.websockets. PR #4376 by @matiuszka.
  • ✨ Support Python internal description on Pydantic model's docstring. PR #3032 by @Kludex.
  • ✨ Update ORJSONResponse to support non str keys and serializing Numpy arrays. PR #3892 by @baby5.

Fixes

  • 🐛 Allow exit code for dependencies with yield to always execute, by removing capacity limiter for them, to e.g. allow closing DB connections without deadlocks. PR #5122 by @adriangb.
  • 🐛 Fix FastAPI People GitHub Action: set HTTPX timeout for GraphQL query request. PR #5222 by @iudeen.
  • 🐛 Make sure a parameter defined as required is kept required in OpenAPI even if defined as optional in another dependency. PR #4319 by @cd17822.
  • 🐛 Fix support for path parameters in WebSockets. PR #3879 by @davidbrochart.

Docs

  • ✏ Update Hypercorn link, now pointing to GitHub. PR #5346 by @baconfield.
  • ✏ Tweak wording in docs/en/docs/advanced/dataclasses.md. PR #3698 by @pfackeldey.
  • 📝 Add note about Python 3.10 X | Y operator in explanation about Response Models. PR #5307 by @MendyLanda.
  • 📝 Add link to New Relic article: "How to monitor FastAPI application performance using Python agent". PR #5260 by @sjyothi54.
  • 📝 Update docs for ORJSONResponse with details about improving performance. PR #2615 by @falkben.
  • 📝 Add docs for creating a custom Response class. PR #5331 by @tiangolo.
  • 📝 Add tip about using alias for form data fields. PR #5329 by @tiangolo.

Translations

  • 🌐 Add Russian translation for docs/ru/docs/features.md. PR #5315 by @Xewus.
  • 🌐 Update Chinese translation for docs/zh/docs/tutorial/request-files.md. PR #4529 by @ASpathfinder.
  • 🌐 Add Chinese translation for docs/zh/docs/tutorial/encoder.md. PR #4969 by @Zssaer.
  • 🌐 Fix MkDocs file line for Portuguese translation of background-task.md. PR #5242 by @ComicShrimp.

Internal

Don't miss a new fastapi release

NewReleases is sending notifications on new releases.