dominate
wasmer-python
Our great sponsors
dominate | wasmer-python | |
---|---|---|
11 | 13 | |
1,645 | 1,955 | |
- | 1.2% | |
4.6 | 6.1 | |
4 days ago | 7 months ago | |
Python | Rust | |
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
wasmer-python
-
WebAssembly: byte-code of the future
It's also possible to do this from many other languages. For example rust, ruby, python or from the CLI.
-
WebAssembly: Adding Python Support to WASM Language Runtimes
PyOdide isn't currently supported outside of browsers, though that might change.
Either way, I couldn't figure out how to do the above sequence of steps with any of the available Python WASM runtimes - they're all very under-documented at the moment, sadly. I tried all three of these:
- https://github.com/wasmerio/wasmer-python
- https://github.com/bytecodealliance/wasmtime-py
- https://github.com/wasm3/pywasm3
- Back-end languages are coming to the front-end
-
Running python in a browser (no sever)
Well... not with that attitude.
-
WAGI: WebAssembly Gateway Interface
Not just for web either: if you ship WebAssembly bytecode as part of your python package, you can push your platform dependencies out to a wasm runtime and skip most of the build matrix.
A runtime like wasmer-python [0] is only 1.5MB.
[0]: https://github.com/wasmerio/wasmer-python
- Wasmer Python
- Lona - A web framework for responsive web apps in full python
- What do you guys think of Dominate? Use cases?
- Can you convert python to JavaScript with libraries?
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.
streamlit - Streamlit โ A faster way to build and share data apps.
aiohttp-json-rpc - Implements JSON-RPC 2.0 using aiohttp
reactpy - It's React, but in Python
ryact - Ryact(Breact but 10x faster): a react-like framework to build super-fast web apps in python.
wagi - Write HTTP handlers in WebAssembly with a minimal amount of work
tocbot - Build a table of contents from headings in an HTML document.
dashborg-go-sdk - Modern internal tools. Defined, controlled, and deployed directly from backend code. No JavaScript. Secure.
wasi-experimental-http - Experimental outbound HTTP support for WebAssembly and WASI
sierra - A Python implementation of DOM