Lilya

Latest version: v0.10.2

Safety actively analyzes 681775 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 6

0.10.2

Changed

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

Fixed

- `runserver` was not being application agnostic.

0.10.1

Added

- New `ClientIPMiddleware` added allowing retrieving IP information directly.

Changed

- The Lilya directives now use [Taskfile](https://taskfile.dev) when generating a project.

0.10.0

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.

0.9.1

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.

0.9.0

Added

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

Example

python
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}"})

0.8.3

Changed

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

Page 1 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.