sierra
wasmer-python
sierra | wasmer-python | |
---|---|---|
16 | 13 | |
89 | 1,955 | |
- | 0.6% | |
6.7 | 6.1 | |
3 months ago | 8 months ago | |
Python | Rust | |
Apache License 2.0 | 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.
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)
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.
lona-project-template
reactpy - It's React, but in Python
wagi - Write HTTP handlers in WebAssembly with a minimal amount of work
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.
aiohttp-json-rpc - Implements JSON-RPC 2.0 using aiohttp
enaml-web - Build interactive websites with enaml
wasi-experimental-http - Experimental outbound HTTP support for WebAssembly and WASI