Heaven

Latest version: v0.4.1

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

Scan your dependencies

Page 2 of 4

0.3.4

- Add support for `heaven.call` to inject heaven instance into function passed to `.call` which
can be used to defer routes registration or any other heaven setup activities to other python modules i.e.
py
from heaven import App
app = App()

src/routes/messages.py -> up(app: App): app.GET('/messages', 'src.controllers.messages.tables')
app.call('src.routes.messages.up')

0.3.3

- Fixed bug with query strings by battle pressing to ensure edge cases covered

0.3.2

- Make Heaven Errors more informative and helpful for debugging i.e. UrlDuplicateError should say what URL is the offending URL
- Add support to retrieve `.host` and `.scheme` from the request object
- Implement `Application.listen` allowing the use of `python app.py` to launch the app

0.3.1

- Add support for adding daemons that run for the entire lifecycle of the application via
the `Application.daemons` getter and setter fields.

0.2.6

- Add support for `Response.out` helper function to allow setting status, body, and headers from a single function body

0.1.0

------------------

Unreleased Jun 25, 2023

- Fix cookie partioning logic to process cookie strings that contain the `=` symbol
- Add synchronous rendering support with Guardian Angel tip for toggling between sync and async renderer
- Remove unimplemented `Response.file` method
- Add support for deferred callables receiving instance of `Application | Router` as sole argument

 

Page 2 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.