Fasthx

Latest version: v2.2.0

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

Scan your dependencies

Page 1 of 4

2.2.0

What's Changed

* htmy and tooling upgrade, plus some more documentation by volfpeter in https://github.com/volfpeter/fasthx/pull/56

**Full Changelog**: https://github.com/volfpeter/fasthx/compare/v2.1.1...v2.2.0

2.1.1

What's Changed

* Fix `Response` handling in `page()` decorator by volfpeter in https://github.com/volfpeter/fasthx/pull/49

**Full Changelog**: https://github.com/volfpeter/fasthx/compare/v2.1.0...v2.1.1

2.1.0

What's Changed

* HTMY integration by volfpeter in https://github.com/volfpeter/fasthx/pull/43
* Jinja doc improvements by volfpeter in https://github.com/volfpeter/fasthx/pull/41

**Full Changelog**: https://github.com/volfpeter/fasthx/compare/v2.0.2...v2.1.0

2.0.2

What's Changed

* `Jinja` error rendering fix by volfpeter in https://github.com/volfpeter/fasthx/pull/40
* `ComponentSelector` typing improvement by volfpeter in https://github.com/volfpeter/fasthx/pull/40

**Full Changelog**: https://github.com/volfpeter/fasthx/compare/v2.0.1...v2.0.2

2.0.1

What's Changed

* Workaround for a FastAPI dependency resolution bug by volfpeter in https://github.com/volfpeter/fasthx/pull/37

**Full Changelog**: https://github.com/volfpeter/fasthx/compare/v2.0.0...v2.0.1

v2.0.0-pypi-upload-release

2.0.0

What's Changed

Features:

- Both the core (`hx()` and `page()`) decorators and the Jinja integration got support for error rendering. Fixes 28, by volfpeter
- Response status code and background job are preserved (if set on the `Response` dependency for example in a route). Fixes 26 27, by volfpeter
- Added a `JinjaPath` utility, see docs for details, by volfpeter
- Added the `Jinja.no_data` property, by volfpeter
- The `RequestComponentSelector` protocol and the `ComponentSelector` type are generic now to allow more flexible integrations, by volfpeter
- `RequestComponentSelector.get_component_id()` was renamed to `RequestComponentSelector.get_component()` as a consequence of the above change, by volfpeter
- More documentation, by volfpeter
- Added migration guide by volfpeter

**Full Changelog**: https://github.com/volfpeter/fasthx/compare/v1.1.1...v2.0.0

Migration summary (from v1)

- If you have custom `RequestComponentSelector` implementations:
- Rename `get_component_id()` methods to `get_component()` and add the new `error: Exception | None` argument to the methods.
- Well-behaved `RequestComponentSelector`s that dont's support error rendering should reraise the received error if it's not `None` (although not doing so will not break anything as result and errors are clearly separated in `Jinja` and the core decorators don't rely on this protocol).
- If you've overridden any of the protected methods of `Jinja`, please go through this PR so you can upgrade your custom implementation.
- If you've written a custom integration, just add the required generic type to ComponentSelector type hints.

Page 1 of 4

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.