118 karma · joined Jan 19, 2021 (5y ago) · 11 submissions
1.
Show HN: GoRay – Ray Core for Golang(github.com ↗)
3 points · by Wang0618 · 11mo ago · discuss
comment 4y ago · link · parent
Once, I collected some ascii art and made a online gallery (https://ascii-art.pywebio.online/#0_joan_stark.cat_love), "cats on a fence " is one of them
comment 5y ago · link · parent
comment 5y ago · link · parent
PyWebIO now support defining inputs based on other ones, but I haven't written this feature into the documentation. Until then, you can solve this problem by splitting inputs with dependencies into multiple forms. (you can use first form to get company and then use another form to get employee)
comment 5y ago · link · parent
More details about deployment will be added to the documentation later.
comment 5y ago · link · parent
In contrast, the way of writing PyWebIO app is more like writing a terminal program, except that the terminal here becomes a browser. The output functions will output content to user in real time, and the input functions will block until the user submit the input form.
comment 5y ago · link · parent
You can use PyWebIO to build simple web applications or browser-based GUI applications without the need to have knowledge of HTML and JS.
The way of writing PyWebIO applications is more like writing a terminal program. You can think of the browser as a rich text terminal while writing PyWebIO app. If you have a terminal script, you only need to replace the input and output functions with PyWebIO's functions to turn your terminal script to a web application.
Features:
- Support click events, layout and output updates.
- Support integration into existing web project, currently supports Flask, Django, Tornado, aiohttp framework. - Support for asyncio and coroutine.
- Compatible with data visualization libraries, e.g., plotly, bokeh, pyecharts.
Links:
- Demos: http://pywebio-demos.demo.wangweimin.site/
- Documents: https://pywebio.readthedocs.io/en/latest/
PS: I am not a native speaker of English, so the documents may be a bit obscure. If you have any questions, please feel free to discuss on https://github.com/wang0618/PyWebIO/discussions
11.
Show HN: PyWebIO – Write interactive web app in script way(github.com ↗)
200 points · by Wang0618 · 5y ago · 37 comments