Releases: dymmond/lilya
Releases · dymmond/lilya
Version 0.8.0
Added
XFrameOptionsMiddleware
to handle with options headers.SecurityMiddleware
adding various security headers to the request/response lifecycle.override_settings
as new decorator that allows to override the Lilya settings in any given test.
Fixed
- Missing status
HTTP_301_MOVED_PERMANENTLY
from the list of available status.
Version 0.7.5
Added
- Allow path parameters to also be defined with
<>
as alternative to{}
.
Example
from lilya.routing import Path
Path("/<age:int>", ...)
Version 0.7.4
Added
- Translations to portuguese.
Fixed
- Missing
settings
in therunserver
directive.
Version 0.7.3
Fixed
- Documentation generation for
typing.Unpack
.
Version 0.7.2
Changed
- Optimised the
encoders
and how it evaluates theENCODER_TYPES
. - Internal fixes in the
TestClient
and internals.
Version 0.7.1
Fixed
- Import cast clashing with local variables.
Version 0.7.0
Version 0.6.1
Version 0.6.0
Fixed
add_arguments
from BaseDirective to not raiseNotImplementedError
exception.
Version 0.5.0
Added
settings_module
also supports import as string
Example
from lilya.apps import Lilya
from lilya.requests import Request
from lilya.routing import Path
async def home(): ...
app = Lilya(
routes=[Path("/", handler=home)],
settings_module="myapp.configs.settings.AppSettings",
)