neat-html


Nameneat-html JSON
Version 0.5.0 PyPI version JSON
download
home_pagehttps://github.com/SamDudley/neat-html
SummaryA python library for writing and composing HTML.
upload_time2024-03-04 18:41:19
maintainer
docs_urlNone
authorSam Dudley
requires_python>=3.10,<4.0
licenseMIT
keywords html
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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:

```bash
pip install neat-html
```

Take it for a spin:

```python
>>> 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>

```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/SamDudley/neat-html",
    "name": "neat-html",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10,<4.0",
    "maintainer_email": "",
    "keywords": "html",
    "author": "Sam Dudley",
    "author_email": "dudley.co.uk@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/6f/06/d77404d1e3fb1b806010f317336cac5f228d4dd4ee78c232b9cf7d16a570/neat_html-0.5.0.tar.gz",
    "platform": null,
    "description": "# neat-html\n\nA python library for writing and composing HTML.\n\nFeatures:\n\n- small API to learn (2 functions)\n- fully typed API\n- produces \"neatly\" formatted HTML\n- written in pure python\n- zero dependencies\n- comprehensive test suite\n- no recursion\n\nInstall using pip:\n\n```bash\npip install neat-html\n```\n\nTake it for a spin:\n\n```python\n>>> from neat_html import h, render\n>>> greeting = h(\"strong\", {\"style\": {\"color\": \"green\"}}, \"Hello\")\n>>> html = h(\"p\", {\"id\": \"foo\"}, [greeting, \", World!\"])\n>>> print(render(html))\n<p id=\"foo\">\n    <strong style=\"color: green\">Hello</strong>, World!\n</p>\n\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A python library for writing and composing HTML.",
    "version": "0.5.0",
    "project_urls": {
        "Homepage": "https://github.com/SamDudley/neat-html",
        "Repository": "https://github.com/SamDudley/neat-html"
    },
    "split_keywords": [
        "html"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0f125aef62b54d4770f266a3fdd872ae29cd5427d3a89310a191f8750e705031",
                "md5": "55b2d93151a121f6e9661904954389c9",
                "sha256": "a7902f543d3fb3efdca9696f873656bafec83fd62de037f8004d85b0515b56b5"
            },
            "downloads": -1,
            "filename": "neat_html-0.5.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "55b2d93151a121f6e9661904954389c9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10,<4.0",
            "size": 6975,
            "upload_time": "2024-03-04T18:41:18",
            "upload_time_iso_8601": "2024-03-04T18:41:18.414150Z",
            "url": "https://files.pythonhosted.org/packages/0f/12/5aef62b54d4770f266a3fdd872ae29cd5427d3a89310a191f8750e705031/neat_html-0.5.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6f06d77404d1e3fb1b806010f317336cac5f228d4dd4ee78c232b9cf7d16a570",
                "md5": "e8b0a1e91cbdde733f8560fb4ffc2dfa",
                "sha256": "af8036de5c77d857c7e59b4a29ae704cb148d6792a90334e886ff711c8f41cfe"
            },
            "downloads": -1,
            "filename": "neat_html-0.5.0.tar.gz",
            "has_sig": false,
            "md5_digest": "e8b0a1e91cbdde733f8560fb4ffc2dfa",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10,<4.0",
            "size": 5581,
            "upload_time": "2024-03-04T18:41:19",
            "upload_time_iso_8601": "2024-03-04T18:41:19.434063Z",
            "url": "https://files.pythonhosted.org/packages/6f/06/d77404d1e3fb1b806010f317336cac5f228d4dd4ee78c232b9cf7d16a570/neat_html-0.5.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-04 18:41:19",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "SamDudley",
    "github_project": "neat-html",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "neat-html"
}
        
Elapsed time: 0.19517s