Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hasansezertasan/awesome-python-html
A curated list of things related to python-based HTML generation.
https://github.com/hasansezertasan/awesome-python-html
List: awesome-python-html
html html-generation html-generator htmx hypermedia no-javascript python python-html
Last synced: about 1 month ago
JSON representation
A curated list of things related to python-based HTML generation.
- Host: GitHub
- URL: https://github.com/hasansezertasan/awesome-python-html
- Owner: hasansezertasan
- License: mit
- Created: 2024-02-26T14:53:16.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-05-04T20:47:26.000Z (8 months ago)
- Last Synced: 2024-11-09T14:03:05.298Z (about 1 month ago)
- Topics: html, html-generation, html-generator, htmx, hypermedia, no-javascript, python, python-html
- Homepage:
- Size: 29.3 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- ultimate-awesome - awesome-python-html - A curated list of things related to python-based HTML generation. (Programming Language Lists / Python Lists)
README
# Awesome Python HTML
A curated list of things related to python-based HTML generation.
---
## Motivation
> This section is written assuming you "use HTML for web development."
Why use Python to generate HTML...
* You lose type hints, editor support, auto-completion, and all the good stuff in Python when you use template engines.
* You create more files (HTML templates) and have to manage them. (You also might have to deal with the file system to manage overrides and such.)
* It's pythonic, a familiar syntax, and you can use all the Python features.Related:
* [Why Kotlin Is The Best Language (to use with htmx) - YouTube](https://www.youtube.com/watch?v=zJNkIJCQohU)
## Libraries
### General HTML Generation
* [lxml/lxml](https://github.com/lxml/lxml): The lxml XML toolkit for Python
* [pyxl4/pyxl4](https://github.com/pyxl4/pyxl4): Extend Python syntax with HTML.
* [dropbox/pyxl](https://github.com/dropbox/pyxl): A Python extension for writing structured and reusable inline HTML.
* [srittau/python-htmlgen](https://github.com/srittau/python-htmlgen): Python HTML 5 Generator
* [ejplatform/hyperpython](https://github.com/ejplatform/hyperpython): A small DSL to write HTML in Python.
* [nosamanuel/cottonmouth](https://github.com/nosamanuel/cottonmouth): Pure-Python HTML generation
* [rohitgirdhar/PyHTMLWriter](https://github.com/rohitgirdhar/PyHTMLWriter): HTML Writer in Python
* [Unviray/pyplater](https://github.com/Unviray/pyplater): Build html component with python
* [Michael-F-Ellis/htmltree](https://github.com/Michael-F-Ellis/htmltree): Generalized nested html element tree with recursive rendering
* [quokkaproject/flask-htmlbuilder](https://github.com/quokkaproject/flask-htmlbuilder): Builds HTML from Python (recovered from local installation since original was deleted)
* [pcarbonn/fast_html](https://github.com/pcarbonn/fast_html): Generate HTML conveniently and efficiently in Python
* [Strovsk/pytagtree](https://github.com/Strovsk/pytagtree): Create markup tag trees using python code with component like structure
* [vchan/hyperscript](https://github.com/vchan/hyperscript): HyperText with Python
* [niklasf/python-tinyhtml](https://github.com/niklasf/python-tinyhtml): A tiny library to safely render compact HTML5 from Python expressions.
* [ClimenteA/htmgem](https://github.com/ClimenteA/htmgem): Generate HTML with Python.
* [cenkalti/pyhtml](https://github.com/cenkalti/pyhtml): HTML generation library for Python
* [tvst/htbuilder](https://github.com/tvst/htbuilder): A purely-functional HTML builder for Python. Think JSX rather than templates.
* [leforestier/yattag](https://github.com/leforestier/yattag): Python library to generate HTML or XML in a readable, concise and pythonic way.
* [Parnassius/domify](https://github.com/Parnassius/domify): HTML generator using pure Python
* [LiftoffSoftware/htmltag](https://github.com/LiftoffSoftware/htmltag): A Python (2 *and* 3) module for wrapping whatever strings you want in HTML tags.
* [tylerbakke/MarkupPy](https://github.com/tylerbakke/MarkupPy): MarkupPy - An HTML/XML generator
* [apiad/auditorium](https://github.com/apiad/auditorium): An HTML+CSS+JS generator from pure Python code
* [skitschy/pyHTML5builder](https://github.com/skitschy/pyHTML5builder)
* [basxsoftwareassociation/htmlgenerator](https://github.com/basxsoftwareassociation/htmlgenerator): TL;DR DOM on the server-side
* [ctoscano/SliqueHTML](https://github.com/ctoscano/SliqueHTML): Python library that lets you create HTML using DOM-like objects.
* [CheeseCake87/pyhead](https://github.com/CheeseCake87/pyhead): The Python HTML `` filler.
* [mosquito/tagz](https://github.com/mosquito/tagz): tagz is a html tags builder
* [Knio/dominate](https://github.com/Knio/dominate): Dominate is a Python library for creating and manipulating HTML documents using an elegant DOM API. It allows you to write HTML pages in pure Python very concisely, which eliminate the need to learn another template language, and to take advantage of the more powerful features of Python.
* [Hrabal/TemPy](https://github.com/Hrabal/TemPy): Python Object Oriented Html Templating System
* [bitplorer/uidom](https://github.com/bitplorer/uidom): Blade like HTML Library for Python
* [tlonny/pdoo](https://github.com/tlonny/pdoo): PDOO (Python DOM Orchestrator) is a library for generating styled HTML documents in pure python
* [MohammadrezaAmani/INUI](https://github.com/MohammadrezaAmani/INUI): Powerful and Highly Customizable Python Library for UI
* [sanic-org/html5tagger](https://github.com/sanic-org/html5tagger): Create HTML documents from Python
* [frodo821/Rattlepy](https://github.com/frodo821/Rattlepy): A easy-to-use pure python HTML template engine
* [mdamien/lys](https://github.com/mdamien/lys): :hibiscus: Simple HTML templating for Python
* [rorre/liku](https://github.com/rorre/liku): Python HTML templating, inspired by modern Web Development.
* [scrussell24/hype-html](https://github.com/scrussell24/hype-html): A minimal python dsl for generating html
* [BrainStormYourWayIn/sierra](https://github.com/BrainStormYourWayIn/sierra): A Python implementation of DOM
* [quadrant-newmedia/html_generators](https://github.com/quadrant-newmedia/html_generators): Functional, streaming HTML generation
* [keithasaurus/simple_html](https://github.com/keithasaurus/simple_html): fast, templateless html generation
* [jpsca/jinjax-ui](https://github.com/jpsca/jinjax-ui): Headless JinjaX UI components
* [volfpeter/markyp](https://github.com/volfpeter/markyp): Python 3 tools for creating markup documents.
* [volfpeter/markyp-html](https://github.com/volfpeter/markyp-html): HTML element implementations based on markyp
* [volfpeter/markyp-bootstrap4](https://github.com/volfpeter/markyp-bootstrap4): Create Bootstrap 4 web pages using purely Python.
* [butvinm/markpy](https://github.com/butvinm/markpy/): Embedding tree markup syntax (XML) into Python.
* [doctorOb/dompy](https://github.com/doctorOb/dompy): Javascript DOM objects in python. Parse html like you would in the browser.
* [Anikeshpatel/dompy](https://github.com/Anikeshpatel/dompy): JavaScript Dom Api for Python, Html Parser and a Web scraping tool in python
* [SimonSapin/html5ever-python](https://github.com/SimonSapin/html5ever-python): Python bindings for html5ever, using CFFI
* [timothycrosley/thedom](https://github.com/timothycrosley/thedom): A python framework to generate html and JavaScript from reusable and combine-able widgets.
* [takd4com/dominter](https://github.com/takd4com/dominter): dominter.py is a simple GUI (Graphical User Interface) package for small web application.
* [miyakogi/wdom](https://github.com/miyakogi/wdom): Web technology based GUI library for desktop applications
* [lxndrdagreat/phlex](https://github.com/lxndrdagreat/phlex): Simple, flexible static HTML builder written in Python
* [MassiminoilTrace/PythonBoostrapWebBuilder](https://github.com/MassiminoilTrace/PythonBoostrapWebBuilder): Helper class to generate simple html pages using bootstrap. I created this to avoid writing even little html by hand
* [mwd1993/QuykHtml](https://github.com/mwd1993/QuykHtml): A python library that allows you to quickly and easily generate HTML templates and even create full-on websites.
* [byteface/domonic](https://github.com/byteface/domonic): Create HTML with python 3 using a standard DOM API. Includes a python port of JavaScript for interoperability and tons of other cool features. A fast prototyping library.
* [codelv/enaml-web](https://github.com/codelv/enaml-web): Build interactive websites with enaml
* [marcuwynu23/JS-templater-python](https://github.com/marcuwynu23/JS-templater-python): Flask Library/Tool to use pure DOM javascript render with view Engine
* [wangxl1998/Python-HTML-Parser](https://github.com/wangxl1998/Python-HTML-Parser): Simple HTML DOM Parser written in python
* [maxpert/htmxido](https://github.com/maxpert/htmxido): HTMX generation in Python 3 using DSL
* [m-housh/bootstrap_wrapper](https://github.com/m-housh/bootstrap_wrapper): A work in progress, a python library(almost) that uses dominate and adds bootstrap capabilities.
* [jaimevp54/htmlBuilder](https://github.com/jaimevp54/htmlBuilder): A beautiful html builder built with python.
* [paveldedik/ludic](https://github.com/paveldedik/ludic): ๐ณ Lightweight framework for building dynamic HTML pages in pure Python.### HTML Form Generation
* [wtforms/wtforms: A flexible forms validation and rendering library for Python.](https://github.com/wtforms/wtforms/)
* [boardpack/reforms: Reforms is a fresh pydantic-based forms validation and rendering library for Python 3.6+.](https://github.com/boardpack/reforms)
* [Pylons/deform: A Python HTML form library.](https://github.com/Pylons/deform)
* [BlitzJB/blitz-forms: python library to programmatically generate html forms.](https://github.com/BlitzJB/blitz-forms)## Projects Using Them
* [byteface/ezcron: cron viewer](https://github.com/byteface/ezcron)
* [drlatech/bottle-dominate](https://github.com/drlatech/bottle-dominate)## Related Projects
If you are into these kinda stuff, check out these projects:
* [PyHAT-stack/awesome-python-htmx](https://github.com/PyHAT-stack/awesome-python-htmx): A curated list of things related to python-based web development using htmx
* [liveviews/liveviews](https://github.com/liveviews/liveviews): Phoenix LiveView workalikes for different languages and frameworks
* [metaperl/pure-python-web-development](https://github.com/metaperl/pure-python-web-development/): Avoid the CSS/JS/HTML soup - develop web apps entirely in Python
* [css-generator ยท PyPI](https://pypi.org/project/css-generator/)
* [pydantic/FastUI](https://github.com/pydantic/FastUI):
* [HTML + HTMX frontend - AKA Jinja frontend ยท Issue #48 ยท pydantic/FastUI](https://github.com/pydantic/FastUI/issues/48)