Changelog¶
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Version 0.4.0 (unreleased)¶
Added¶
Websockets, see Websockets:
Websocket,baguette.websocketexceptions,WebsocketRouterandWebsocketRoute.
Version 0.3.1 (2021-05-23)¶
Version 0.3.0 (2021-05-21)¶
Added¶
Middlewares: see Middlewares.
middlewareskeyword argument inBaguette,Baguette.middleware()decorator,Baguette.build_middlewares(),Baguette.add_middleware()andBaguette.remove_middleware().Default middlewares:
DefaultHeadersMiddlewareandErrorMiddleware.ConfigandBaguette.config.Customizable JSON encoder for JSON responses:
JSONResponse.JSON_ENCODER.
Version 0.2.1 (2021-05-15)¶
Added¶
Accept bytes as handler return value.
Form.files.PathConverter.allow_empty.
Version 0.2.0 (2021-05-09)¶
Added¶
HTML templates rendering:
render(),templates_directorykeyword argument inBaguette.Redirects:
RedirectResponseandredirect().
Version 0.1.6 (2021-05-05)¶
Fixed¶
Bug in
Request.form()wheninclude_querystringwasTrue.
Version 0.1.5 (2021-05-01)¶
Added¶
request.form(), with support forapplication/x-www-form-urlencodedandmultipart/form-dataform content types.Support for strings in
make_headers().
Version 0.1.4 (2021-04-29)¶
Added¶
Add static file serving.
Add
static_url_pathandstatic_directorykeyword arguments toBaguette.FileResponse, credits to Quart’s implementation.
Changed¶
Errors in routes are handled and the traceback is sent back along with the 500 status code when
Baguette.debugisTrue.
Version 0.1.2 (2021-04-26)¶
Added¶
app.runthat uses https://www.uvicorn.org/.Docs.
Version 0.1.0 (2021-04-23)¶
Added¶
Dynamic routing, see Dynamic Routing.
Path parameters converters, see Converters.
Implement ASGI lifespan protocol:
Baguette.startup()andBaguette.shutdown().Add methods for every HTTP verb on
TestClient.Tests for most of the module.
Docstrings on most classes and methods.
Changed¶
Renamed
baguette.responsetobaguette.responses.
Version 0.0.3 (2021-04-18)¶
Added¶
Keyword arguments to
Baguette:debug,default_headers,error_response_typeanderror_include_description.RouterandRoute.baguette.httpexceptionsso that HTTP errors can be raised with Python exceptions.TestClientfor testing a Baguette application.Type hinting.
Changed¶
Baguette.endpointdecorator was renamed toBaguette.route()because it makes more sense with the name ofRouter.
Version 0.0.2 (2021-04-14)¶
Added¶
Baguettewith basic HTTP request handling.Responses:
JSONResponse,PlainTextResponse,HTMLResponseandEmptyResponse.Class based endpoints with
View.License.
Version 0.0.1 (2021-04-12)¶
Test release