htpy - HTML in Python
This project makes it possible to express HTML directly as Python code.
Development environment
- Create a virtualenv:
python -m venv .venv
- Install dependencies:
pip install .[dev]
- Run tests/checks:
./test
Examples
Flask with htmx
See examples/htmx_flask.py. Run with:
$ pip install flask
$ python examples/htmx_flask.py