Skip to content

Releases: dymmond/lilya

Version 0.11.0

Choose a tag to compare

@tarsil tarsil released this 25 Nov 13:20
129d8a8

Changed

  • Enhanced encoders:
    • ENCODER_TYPES is now a context-variable.
    • New encoders for datetime and date.
    • Former json_encoder is now exported via public API as json_encode. The old name is still available in _internal.
    • New method apply_structure, which allows input parsing.
    • make_response does not support encoders as class anymore only as instance.

Fixed

  • typing_extensions errors on python >= 3.10.
  • Address deprecation warnings in tests.
  • Fix encoders applied after simplifying response.

Version 0.10.2

Choose a tag to compare

@tarsil tarsil released this 12 Nov 13:43
6fdf2cf

Changed

  • Lilya is now BSD-3 licence compliant to protect the developers and mantainers.

Fixed

  • runserver was not being application agnostic.

Version 0.10.1

Choose a tag to compare

@tarsil tarsil released this 09 Nov 17:49
f6916fd

Added

  • New ClientIPMiddleware added allowing retrieving IP information directly.

Changed

  • The Lilya directives now use Taskfile when generating a project.

Version 0.10.0

Choose a tag to compare

@tarsil tarsil released this 09 Oct 16:15
67246fa

Changed

  • Rename EnvironmentException to EnvException (but keep old name as alias).
  • Drop support for python<3.9.
  • ENCODER_TYPES are now ordered and new encoders are prepend.

Version 0.9.1

Choose a tag to compare

@tarsil tarsil released this 08 Aug 10:57
a82f9c0

Added

  • CORSMiddleware now supports the allow_private_networks boolean parameter. This prepares
    for what is coming for Chromium based browsers.

Changed

  • Internal testing for Edgy with the new drivers.

Version 0.9.0

Choose a tag to compare

@tarsil tarsil released this 12 Jul 12:20
b1ab12d

Added

  • The new possibility of declaring routes using lilya as decorator.

Example

from lilya.apps import Lilya
from lilya.requests import Request
from lilya.responses import Ok

app = Lilya()


@app.get("/")
async def welcome():
    return Ok({"message": "Welcome to Lilya"})


@app.get("/{user}")
async def user(user: str):
    return Ok({"message": f"Welcome to Lilya, {user}"})


@app.get("/in-request/{user}")
async def user_in_request(request: Request):
    user = request.path_params["user"]
    return Ok({"message": f"Welcome to Lilya, {user}"})

Version 0.8.3

Choose a tag to compare

@tarsil tarsil released this 01 Jul 18:18
e4e56a2

Changed

  • Internal app generator simple now returns async examples by default.
  • Update encoding to be utf-8 by default.

Version 0.8.2

Choose a tag to compare

@tarsil tarsil released this 01 Jul 00:45
6ede2be

This was supposed to in the version 0.8.1

Fixed

  • LRU caching affecting connections from request.

Version 0.8.1

Choose a tag to compare

@tarsil tarsil released this 30 Jun 21:37
1eb0e1c

Changed

  • Removed unused middleware.
  • Updated AppSettingsMiddleware for lazy loading
  • Updated globalise_settings.

Fixed

  • Performance issues caused by AppSettingsModule.

Version 0.8.0

Choose a tag to compare

@tarsil tarsil released this 28 Jun 13:13
ac2fae8

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.