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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

htpy-24.3.2.tar.gz (11.6 kB view hashes)

Uploaded Source

Built Distribution

htpy-24.3.2-py3-none-any.whl (5.8 kB view hashes)

Uploaded Python 3

Supported by

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