{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/20"},{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http/7"},{"label":"HTML","url":"https://skillfed.io/packages/category/text-processing-markup-html"}],"enrichment":{"capability":"Renders HTML5 safely from Python expressions using a functional API with automatic escaping and compact output.","skillfed_tags":["html-generation","functional-api","jupyter-compatible"],"use_cases":["Generate HTML dynamically in web applications or scripts without string concatenation or template files.","Build Jupyter notebook outputs programmatically with safe escaping and clean composition.","Create email templates or HTML reports by composing fragments as Python functions.","Integrate with Jinja2 or other template systems that support the `__html__` protocol.","Render pandas DataFrames or other objects with `_repr_html_()` support alongside custom HTML."],"what_it_does":"tinyhtml is a minimal Python library for building and rendering HTML5 safely. It provides a functional API where you compose HTML elements using the `h()` function, nest them by calling the result with child content, and render to a string. All text content and attributes are automatically escaped to prevent injection, with a `raw()` escape hatch for intentional unescaped HTML. The library produces compact output with no superfluous whitespace.\n\nIt integrates with Jupyter notebooks via `_repr_html_()` and works with the `__html__` protocol used by MarkupSafe and other template systems. You can write reusable templates as Python functions returning fragments, pass iterables as child elements, and use boolean or dictionary-valued attributes. The library includes mypy typings and supports Python 3.8 through 3.13.","worth_installing":"Yes, if you need lightweight HTML generation with safety guarantees. Zero dependencies and low install friction make it easy to adopt. Dormant maintenance is acceptable for a stable, narrow-scope library\u2014no active bugs or vulnerabilities are known. Best suited for projects that prefer functional composition over template strings and don't require advanced features like comments or inline SVG."},"id":"tinyhtml","links":{"html":"https://skillfed.io/packages/tinyhtml","md":"https://skillfed.io/packages/tinyhtml.md","pypi":"https://pypi.org/project/tinyhtml/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2025-01-11","license_spdx":null,"license_treatment":"permissive","name":"tinyhtml","python_support":"supports_current","summary":"A tiny library to safely render compact HTML5 from Python expressions."},"popularity":{"monthly_downloads":104254,"position":12758,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.3.0"}
