pyscript
appdaemon
Our great sponsors
pyscript | appdaemon | |
---|---|---|
41 | 2 | |
17,400 | 800 | |
0.6% | 1.8% | |
9.3 | 8.3 | |
6 days ago | 6 days ago | |
Python | Python | |
Apache License 2.0 | GNU General Public License v3.0 or later |
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.
pyscript
-
RustPython
You are right for the most part. I attended a talk about pyscript[1] (runs python in the browser using wasm which is similar) and there is a 2x performance hit.
-
Python HTTP library 'urllib3' now works in the browser
PyScript maintainer here - I'd love to hear more about this application! Either here, or over on our Discord (invite link is on the GitHub Page [1]).
[1] https://github.com/pyscript/pyscript?tab=readme-ov-file#summ...
-
Convert code from alpha version to latest version. Where to find complete and precise changelogs?
Changelogs for PyScript don't fully exist. You can check out the changelog in the repository which has changes for the last two releases, or you can see the series of release notes posts I wrote for versions 2022.09.1, 2022.12.1, 2023.03.1, and 2023.05.1, in which I attempted to document all the significant changes in those versions. (You'll note 2022.06.1, the version between Alpha and 2022.05.1, is missing, simply because I hadn't started writing the posts yet).
For the first question - why your code previously created an HTML node but now just prints out the literal characters of the HTML - that was a change made in 2022.12.1, in Pull Request 915 to be specific. You can check out the single-line change that caused this, if you want. Essentially, calls to Element.write() or display() have their contents escaped by default, which wasn't the case before.
-
After tearing my hair out writing JavaScript the last few days how close are we to Python in the browser?
PyScript started as a usability layer around Pyodide for those not used to working in JS. It's now working on things like incorporating the Micropython runtime as an alternative, moving the interpreter to a worker thread, adding a plugins ecosystem, easier events API's, and more.
-
Any way to display "working..." while waiting for py-reml to evaluate?
Some answers: https://github.com/pyscript/pyscript/discussions/1414
-
NameError question
Mainly, the pys-onClick syntax that was present in earlier version in favor of the new py-* syntax, where * is a browser event name. It also takes a string of executable python instead of the name of a Callable. So in your case, you'd use py-click="get_input()". (There's a long-in-progress PR on GitHub with more examples.)
- A community of people who don't want JS on the web anymore?
-
PyScript - Run Python in your Browser!
PyScript source code
-
Use PyScript together with Solid.js.
Since there is a lot of stuff going on on the pyscript project I made a wrapper for solid that enables you to you pyscript together with solid.
appdaemon
What are some alternatives?
brython - Brython (Browser Python) is an implementation of Python 3 running in the browser
pyscript - Pyscript adds rich Python scripting to HASS
pyodide - Pyodide is a Python distribution for the browser and Node.js based on WebAssembly
django-readers - A lightweight function-oriented toolkit for better organisation of business logic and efficient selection and projection of data in Django projects.
Home Assistant - :house_with_garden: Open source home automation that puts local control and privacy first.
wasm3 - 🚀 A fast WebAssembly interpreter and the most universal WASM runtime
NumPy - The fundamental package for scientific computing with Python.
open-meteo - Free Weather Forecast API for non-commercial use
ha-sengledapi - Home Assistant Integration for Sengled Bulbs. This is a custom component to allow control of Sengled Bulbs in Homeassistant using the unofficial Sengled API. Please note this mimics the Sengled app and therefore Sengled may cut off access at anytime.
core - Online IDE powered by Visual Studio Code ⚡️
Node RED - Low-code programming for event-driven applications
django_channels_bingo_game - Real Time Multiplayer Bingo Game Using Django Channels and Javascript