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.5.0.tar.gz
(5.6 kB
view hashes)
Built Distribution
Close
Hashes for neat_html-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7902f543d3fb3efdca9696f873656bafec83fd62de037f8004d85b0515b56b5 |
|
MD5 | 55b2d93151a121f6e9661904954389c9 |
|
BLAKE2b-256 | 0f125aef62b54d4770f266a3fdd872ae29cd5427d3a89310a191f8750e705031 |