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.3.0.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for neat_html-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31400bbf212782fca6a140f77ba29c09b8b0c6371592105166613834e57ebfa7 |
|
MD5 | bea402e81c26787351f5147dc72348da |
|
BLAKE2b-256 | e5cf7f86c9e0697df6bbd44ba20960fd6abb579b098abaf057e12048bd3f73cc |