conradbez / hstream Goto Github PK
View Code? Open in Web Editor NEWHyper Stream
Hyper Stream
A few of us at PyCon this year got together and brainstormed a new Web Stack that we are calling PyHAT (Python, htmx, ASGI, TailwindCSS). The first thing we set out to do is create awesome-python-htmx; a collection of active tools/libraries/projects in that space.
Your project seems like an obvious thing to include, but I'm honestly not sure where it would go. I'd appreciate your feedback if you have any on it's inclusion.
In addition to that, if you could also participate in PyHAT-stack/awesome-python-htmx#1 that would be greatly appreciated!
I tried the interactive examples listed in the readme and tried around a bit.
The goal of the following snippet is to have the "Welcome ..." text only shown when the checkbox is checked. Unfortunately as soon as the checkbox is ticked the whole document/website gets reloaded and all variables are lost.
from hstream import hs
visitor_name = hs.text_input('Name')
checkbox = hs.checkbox('Would you like to be my friend?')
if checkbox: hs.markdown(f"Welcome {visitor_name}")
As I am not very deep into hstream and didn't find any documentation I wanted to point this behaviour out. If I just used it wrong I would appreciate it to be corrected!
BR
hs.text_input('What's your name?', default_value = 'friend')
should be changed to:
visitor_name = hs.text_input("What's your name?", default_value = 'friend')
I get:
/hstream/components.py", line 179, in Components
self, label: list[str], default_value: str = False, key: str = None
TypeError: 'type' object is not subscriptable
From running it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.