{"categories":[{"label":"HTML","url":"https://skillfed.io/packages/category/text-processing-markup-html"}],"enrichment":{"capability":"htbuilder lets you construct HTML strings using Python function calls and operators instead of template syntax, supporting attributes, nested elements, and conditional rendering through pure Python code.","skillfed_tags":["html-generation","functional-programming"],"use_cases":["Generate HTML email bodies or reports dynamically in Python without learning a template language.","Build web scraper output or data-driven HTML documents where structure depends on runtime conditions.","Construct HTML fragments in web frameworks (e.g., Streamlit, FastAPI) where inline Python markup is clearer than templates.","Programmatically create test fixtures or mock HTML responses in unit tests.","Generate static site content or documentation where HTML structure is computed from data structures."],"what_it_does":"htbuilder is a lightweight HTML string generator that replaces template languages with pure Python function calls. Instead of writing HTML templates or concatenating strings, you import tag names (div, span, ul, etc.) as functions and call them with content and attributes as arguments. The package supports multiple syntaxes\u2014positional arguments, keyword arguments, chained calls with parentheses, or bracket notation\u2014so you can choose the style that reads most naturally to you.\n\nThe core value is that HTML generation becomes just Python: you can use loops, conditionals, and variables directly in your markup without template syntax. It also provides helper functions for common patterns like building style strings, class lists, and CSS units. With no runtime dependencies and a permissive license, it's a minimal, self-contained tool for scenarios where you need to generate HTML programmatically rather than render from a template.","worth_installing":"Yes, if you prefer writing HTML in Python and don't need frequent updates. The package is stable, has no security vulnerabilities, and solves a real problem for developers who dislike template syntax. The dormant maintenance and source-only distribution are minor friction, but the zero runtime dependencies and permissive license make it low-risk for projects that can tolerate infrequent upstream changes."},"id":"htbuilder","links":{"html":"https://skillfed.io/packages/htbuilder","md":"https://skillfed.io/packages/htbuilder.md","pypi":"https://pypi.org/project/htbuilder/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2025-01-09","license_spdx":null,"license_treatment":"permissive","name":"htbuilder","python_support":"supports_current","summary":"A purely-functional HTML builder for Python. Think JSX rather than templates."},"popularity":{"monthly_downloads":251139,"position":8595,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.9.0"}
