pypi fastapi 0.41.0

latest releases: 0.111.0, 0.111.0.dev1, 0.110.3...
4 years ago
  • Upgrade required Starlette to 0.12.9, the new range is >=0.12.9,<=0.12.9.
    • Add State to FastAPI apps at app.state.
    • PR #593.
  • Improve handling of custom classes for Requests and APIRoutes.
    • This helps to more easily solve use cases like:
      • Reading a body before and/or after a request (equivalent to a middleware).
      • Run middleware-like code only for a subset of path operations.
      • Process a request before passing it to a path operation function. E.g. decompressing, deserializing, etc.
      • Processing a response after being generated by path operation functions but before returning it. E.g. adding custom headers, logging, adding extra metadata.
    • New docs section: Custom Request and APIRoute class.
    • PR #589 by @dmontagu.
  • Fix preserving custom route class in routers when including other sub-routers. PR #538 by @dmontagu.

Don't miss a new fastapi release

NewReleases is sending notifications on new releases.