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.2.0.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for neat_html-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 102b48394c0e69b9e8f20640b660df3b2273157104addb71e439d64cfe8db39a |
|
MD5 | deb0a2b7aacc662f16d385a8a2628ceb |
|
BLAKE2b-256 | b6dfbb530a75f9c5d7c3dfeb14ab2afcad5228e8b108aef4d3c31c2f47478e66 |