pelme / htpy

Generate HTML from Python

Home Page:http://htpy.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Generate HTML from Python

http://htpy.dev

License:MIT License


Languages

Language:Python 99.9%Language:Shell 0.1%