A python library for writing and composing HTML.
Project description
neat-html
A python library for writing and composing HTML.
Features:
- small API to learn (2 functions)
- fully typed API
- produces "neatly" formatted HTML
- written in pure python
- zero dependencies
- comprehensive test suite
- no recursion
Install using pip:
pip install neat-html
Take it for a spin:
>>> from neat_html import h, render
>>> greeting = h("strong", {"style": {"color": "green"}}, "Hello")
>>> html = h("p", {"id": "foo"}, [greeting, ", World!"])
>>> print(render(html))
<p id="foo">
<strong style="color: green">Hello</strong>, World!
</p>
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
neat_html-0.1.0.tar.gz
(5.4 kB
view hashes)
Built Distribution
Close
Hashes for neat_html-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6780b09dd1c2e627de4d0c471e4baa5c26a12c248e468dfb892098a865bb19b |
|
MD5 | e3823488acfb4142e054b526383adc5e |
|
BLAKE2b-256 | 48561de96e435d068a472fabf5d2e1c8e51706f1ae8592e0256698844d07d2c0 |