Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zomatree/kine
React like agnostic GUI framework for Python
https://github.com/zomatree/kine
gui hacktoberfest liveview python react server-side-rendering ssr web websocket
Last synced: 8 days ago
JSON representation
React like agnostic GUI framework for Python
- Host: GitHub
- URL: https://github.com/zomatree/kine
- Owner: Zomatree
- License: mit
- Created: 2022-09-15T07:01:43.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-09-11T04:22:12.000Z (2 months ago)
- Last Synced: 2024-09-11T10:49:56.564Z (2 months ago)
- Topics: gui, hacktoberfest, liveview, python, react, server-side-rendering, ssr, web, websocket
- Language: Python
- Homepage:
- Size: 534 KB
- Stars: 11
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Kine
![Logo and name](.github/logo_name.png)
Kine is a web-based gui framework with support for reactive code and ease of use.
Supports both liveview-style server-side rendering and running client side via WASM.
### Example
See a version of this example running live [here](https://zomatree.github.io/Kine/)
```py
import asynciofrom kine import *
from kine.renderers.web import *@component
def app(cx: Scope):
value = use_state(cx, lambda: 0)return div[
button(
onclick=lambda _: value.modify(lambda v: v + 1)
)[
"+1"
],
f"{value.get()}",
button(
onclick=lambda _: value.modify(lambda v: v - 1)
)[
"-1"
],
]asyncio.run(start_web(app()))
```