dominate
sierra
Our great sponsors
dominate | sierra | |
---|---|---|
11 | 16 | |
1,645 | 89 | |
- | - | |
4.6 | 6.7 | |
4 days ago | 3 months ago | |
Python | Python | |
GNU Lesser General Public License v3.0 only | Apache License 2.0 |
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
sierra
- Lona - A web framework for responsive web apps in full python
- Template-less HTML rendering in Python
-
A Python native engine for Web Development
Sierra is a Python native engine for Web Development, which makes integration with the backend faster, as well as have full control on your frontend. You can now develop your web application purely in Python, taking full advantage of its powerful functionalities with simple and elegant.
-
Show HN: A Python native engine for web development
Sorry, but this is really not suitable for much. There is so much wrong with this implementation that I’m not sure where to start. Every call to your template writes to a single file called “index.html”[1] which is then copied to another file when “written”? You also print exceptions rather than allowing people to handle them as they wish.
The idea is nice, but try and remove all file system calls and do this entirely in-memory.
1. https://github.com/BrainStormYourWayIn/sierra/blob/main/src/...
2. https://github.com/BrainStormYourWayIn/sierra/blob/main/src/...
- Show HN: Sierra – A micro templating engine purely in Python
- What do you guys think of Dominate? Use cases?
-
How can I display a graph on my Flask app?
You could try Sierra, if you want to do it purely in Python
- Can you convert python to JavaScript with libraries?
-
Flask templating with Sierra?
Here's the GitHub and the documentation to it
- Python framework for WAY easier integration with HTML and CSS (you can basically use all of Python's functionalities on your web application with a much easier process)
What are some alternatives?
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.
wasmer-python - 🐍🕸 WebAssembly runtime for Python
lona-project-template
aiohttp-json-rpc - Implements JSON-RPC 2.0 using aiohttp
ryact - Ryact(Breact but 10x faster): a react-like framework to build super-fast web apps in python.
reactpy - It's React, but in Python
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.