Skip to content

Releases: dymmond/lilya

Version 0.8.0

28 Jun 13:13
ac2fae8
Compare
Choose a tag to compare

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

17 Jun 16:41
4798ce3
Compare
Choose a tag to compare

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

11 Jun 15:57
ef893cd
Compare
Choose a tag to compare

Added

  • Translations to portuguese.

Fixed

  • Missing settings in the runserver directive.

Version 0.7.3

04 Jun 12:11
dc77920
Compare
Choose a tag to compare

Fixed

  • Documentation generation for typing.Unpack.

Version 0.7.2

29 May 17:08
1ea20bf
Compare
Choose a tag to compare

Changed

  • Optimised the encoders and how it evaluates the ENCODER_TYPES.
  • Internal fixes in the TestClient and internals.

Version 0.7.1

07 May 22:38
28b5879
Compare
Choose a tag to compare

Fixed

  • Import cast clashing with local variables.

Version 0.7.0

07 May 18:22
0e92cc5
Compare
Choose a tag to compare

Added

Fixed

  • Internal AsyncExitStack middleware raising exception.

Version 0.6.1

02 May 09:47
c3e8f78
Compare
Choose a tag to compare

Changed

  • Internal support for hatch and removed the need for a Makefile
  • Documentation references
  • Internals for Directives. #54 by @devkral.

Version 0.6.0

02 May 09:15
e14ec98
Compare
Choose a tag to compare

Fixed

  • add_arguments from BaseDirective to not raise NotImplementedError exception.

Version 0.5.0

23 Apr 16:56
894852e
Compare
Choose a tag to compare

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",
)