Skip to main content

HTML in Python

Project description

htpy - HTML in Python

This project makes it possible to express HTML directly as Python code.

Development environment

  1. Create a virtualenv: python -m venv .venv
  2. Install dependencies: pip install .[dev]
  3. Run tests/checks: ./test

Examples

Flask with htmx

See examples/htmx_flask.py. Run with:

$ pip install flask
$ python examples/htmx_flask.py

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page