Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Wang0618
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
Show HN: GoRay – Ray Core for Golang
(github.com)
3 points
by
Wang0618
9mo ago
|
0 comments
2.
▲
by
Wang0618
5y ago
Here is a more relative one: https://web.archive.org/web/20000307060602/http://geocities.... Once, I collected some ascii art and made a online gallery ( https://ascii-art.pywebio.online/#
3.
▲
by
Wang0618
5y ago
Awesome work! I also developed a similar project called PyWebIO ( https://github.com/pywebio/PyWebIO ) last year. It provides less control to HTML element but provides a straightforward way to make input and output. Hope
4.
▲
by
Wang0618
6y ago
You can place a password validation input at the beginning of the code and return directly if the validation does not pass. PyWebIO ensures that only users who have passed the validation can continue with the rest of the code.
5.
▲
by
Wang0618
6y ago
Both http and websocket protocol can be used to implement server-browser communication in PyWebIO. The websocket is default, and you can use `pywebio.platform.tornado_http.start_server()` or `pywebio.platform.path_deploy_http()` to use http
6.
▲
by
Wang0618
6y ago
PyWebIO won't re-execute the whole script. In pywebio, if the code executes to the end, the user session will also be closed. You can use `while` loop in your code to continuously receive user input in PyWebIO app. PyWebIO now support
7.
▲
by
Wang0618
6y ago
You can check this section first: https://pywebio.readthedocs.io/en/latest/guide.html#server-m... More details about deployment will be added to the documentation later.
8.
▲
by
Wang0618
6y ago
PyWebIO is more lightweight and supports coroutine and web framework integration. Although PyWebIO is indeed a bit crude, the usage scenarios of PyWebIO and streamlit don't exactly overlap.
9.
▲
by
Wang0618
6y ago
Streamlit uses a responsive way to get input and doesn't rely on callbacks at all. Every time a user interacts with a widget, your script is re-executed and the output value of that widget is set to the new value during that run. It&#
10.
▲
by
Wang0618
6y ago
PyWebIO is a Python library which provides a series of imperative functions to obtain user input and output on the browser. The input function of PyWebIO is blocking, and the output function will output content to user in real time. You can
11.
▲
Show HN: PyWebIO – Write interactive web app in script way
(github.com)
200 points
by
Wang0618
6y ago
|
37 comments