{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/21"},{"label":"Dynamic Content","url":"https://skillfed.io/packages/category/internet-www-http-dynamic-content/3"},{"label":"HTML","url":"https://skillfed.io/packages/category/text-processing-markup-html"}],"enrichment":{"capability":"Render HTML by writing Python code, using classes to represent tags and leveraging Python's syntax and object-oriented features instead of template languages.","skillfed_tags":["html-generation","code-as-markup"],"use_cases":["Generate dynamic HTML pages from Python data structures (e.g., rendering user lists or product catalogs).","Build HTML in unit tests without external template files or string concatenation.","Create reusable HTML components as Python functions that return tag objects.","Programmatically construct email templates or reports where Python logic drives the structure."],"what_it_does":"htmlBuilder lets you construct HTML documents by writing Python code instead of templates or markup strings. Each HTML tag is a Python class that accepts child elements and attributes as constructor arguments, and you call render() to produce the final HTML string. This approach lets you use Python's full feature set\u2014loops, comprehensions, conditionals, functions\u2014directly in your HTML generation logic, without learning a separate template syntax.\n\nThe library is designed around three core ideas: minimal learning curve (you need only Python and HTML knowledge), real Python code (the generation logic reads like normal Python), and testability (you can inspect and unit-test the tag object structure before rendering). It has no runtime dependencies, supports Python 3.6 and later, and carries an MIT license.","worth_installing":"Yes, if you prefer writing Python code over learning a template language and don't need active maintenance. The library is stable, has no dependencies, and carries a permissive license. However, note that the last release was in 2021; if you encounter bugs or need new features, community support may be limited. It is suitable for projects where HTML generation is straightforward and you value code clarity over template-engine maturity."},"id":"htmlbuilder","links":{"html":"https://skillfed.io/packages/htmlbuilder","md":"https://skillfed.io/packages/htmlbuilder.md","pypi":"https://pypi.org/project/htmlbuilder/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2021-03-02","license_spdx":null,"license_treatment":"permissive","name":"htmlBuilder","python_support":"supports_current","summary":"A beautiful html builder library."},"popularity":{"monthly_downloads":91710,"position":13506,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0.0"}
