dominate
domonic
Our great sponsors
dominate | domonic | |
---|---|---|
11 | 32 | |
1,645 | 130 | |
- | - | |
4.6 | 6.1 | |
4 days ago | 3 months ago | |
Python | Python | |
GNU Lesser General Public License v3.0 only | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
dominate
-
Ludic: New framework for Python with seamless Htmx support
It feels weird at the beginning, but after a bit of practice I found it pretty nice to write HTML in Python.
Here is an example of a HTML page layout written with the DOMinate [1] library for example, in a "JSX-like" way:
https://github.com/olivierphi/zakuchess/blob/main/src/apps/w...
It may hurt your eyes at first sight, for sure... But similarly to technologies like Tailwind CSS, it's mostly a matter of getting used to it - and after a while it end ups feeling very natural to use :-)
1: https://github.com/Knio/dominate#readme
-
C++: The Obvious Final Step
Pretty much how https://github.com/Knio/dominate does it, but no context variable binding (otherwise gets messy with lots of nesting)
-
That people produce HTML with string templates is telling us something
You're conflating two things, dynamically creating HTML is great and lets you avoid JS in a lot of cases. It's whether you should treat your HTML document as the tree of nodes that it is in your programming language or treat it like a string.
https://github.com/Knio/dominate is a Python lib that implements this principal.
-
Views / Templates / Custom Widgets ... I just want to display non editable data
Actually excited to giive this HTML field a try - https://github.com/Knio/dominate might come in useful for me to generate the html
-
htmx_gen
How is it different from other existing projects like Dominate?
-
Python and Web Developing
If you’re talking about generating HTML using Python, I highly recommend the library Dominate. Incredibly intuitive and Pythonic way to generate HTML.
- Lona - A web framework for responsive web apps in full python
- Template-less HTML rendering in Python
- What do you guys think of Dominate? Use cases?
-
I made a Python3 framework fro integrating Python with HTML and CSS
Ive mostly used Dominate for my services. https://github.com/Knio/dominate
domonic
- Ludic: New framework for Python with seamless Htmx support
-
Sunday Daily Thread: What's everyone working on this week?
I did the 100th release of this python DOM 0.9.11... https://github.com/byteface/domonic
I've managed to tweak domonic (https://github.com/byteface/domonic) to work with elementpath (https://github.com/sissaschool/elementpath)...
-
Web Scraping Open Knowledge
I'm not sure about quicker. Doesn't scrapy use elementpath?. which converts a css query to an xpath under the hood as there is no complete CSSOM available for python. Likely as there is no modern standards based python dom to operate on so doing it on lxml tree is probably the best option. I find the main difference is xpath can return an attribute value where as css returns the node. You can use either from the terminal in my lib... https://github.com/byteface/domonic (as it uses elementpath like scrapy)
-
5% of the 420 python codebases we checked had silently skipped tests - including big projects with over 50k stars and 20k forks
Thanks for your tool. I've been using it this week and updated a bunch of code. You are now a contributer... https://github.com/byteface/domonic/pull/58
-
htmlx - a pure python dom
[domonic](https://domonic.readthedocs.io/) will continue to evolve. It's a pure python dom I been working on in free time over last 2 years... https://github.com/byteface/domonic/
-
Saturday Daily Thread: Resource Request and Sharing! Daily Thread
and used it on my lib yesterday... https://github.com/byteface/domonic/commit/96a91bbf3ee6f672bc1c0e5978f55e45706392aa
- an evolving python DOM for creating html
- PyML - A python library to build html.
- A python 3 library to create HTML with an evolving DOM API
What are some alternatives?
wasmer-python - 🐍🕸 WebAssembly runtime for Python
pglet - Pglet - build internal web apps quickly in the language you already know!
aiohttp-json-rpc - Implements JSON-RPC 2.0 using aiohttp
examples - Sample apps for Pglet
ryact - Ryact(Breact but 10x faster): a react-like framework to build super-fast web apps in python.
Flask - The Python micro framework for building web applications.
tocbot - Build a table of contents from headings in an HTML document.
enaml-web - Build interactive websites with enaml
dashborg-go-sdk - Modern internal tools. Defined, controlled, and deployed directly from backend code. No JavaScript. Secure.
TurboGears - Python web framework with full-stack layer implemented on top of a microframework core with support for SQL DBMS, MongoDB and Pluggable Applications
sierra - A Python implementation of DOM
AIOHTTP - Asynchronous HTTP client/server framework for asyncio and Python