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.4.0.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for neat_html-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35455e33739044c6e32ed06d9e35ecc6060de278d41a14535ec032bb077d0449 |
|
MD5 | 8822ea63a393201183d6e180d02beed6 |
|
BLAKE2b-256 | 1a01920eb9c4232b340c3751ac82025ff8f86cc0491265f76e9b5a24efbbdc3b |