back to home

pywebio / PyWebIO

Write interactive web app in script way.

4,827 stars
392 forks
31 issues
PythonTypeScriptCSS

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing pywebio/PyWebIO in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Source files are only loaded when you start an analysis to optimize performance.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind.in/repo/pywebio/PyWebIO)
Preview:Analyzed by RepoMind

Repository Overview (README excerpt)

Crawler view

PyWebIO Write interactive web app in script way. %3D%203.5.2-brightgreen" alt="Python Version"> [Document] | [Demos] | [Playground] | [Why PyWebIO?] English | 中文 PyWebIO provides a series of imperative functions to obtain user input and output on the browser, turning the browser into a "rich text terminal", and can be used to build simple web applications or browser-based GUI applications without the need to have knowledge of HTML and JS. PyWebIO can also be easily integrated into existing Web services. PyWebIO is very suitable for quickly building applications that do not require complex UI. Features: • Use synchronization instead of a callback-based method to get input • Non-declarative layout, simple and efficient • Less intrusive: old script code can be transformed into a Web application only by modifying the input and output operation • Support integration into existing web services, currently supports Flask, Django, Tornado, aiohttp, FastAPI framework • Support for asyncio and coroutine • Support data visualization with third-party libraries, e.g., , , . Installation Stable version: Development version: **Prerequisites**: PyWebIO requires Python 3.5.2 or newer Quickstart **Hello, world** Here is a simple PyWebIO script to calculate the BMI: This is just a very simple script if you ignore PyWebIO, but using the input and output functions provided by PyWebIO, you can interact with the code in the browser [[demo]](http://pywebio-demos.pywebio.online/bmi): **Serve as web service** The above BMI program will exit immediately after the calculation, you can use to publish the function as a web application: **Integration with web framework** To integrate a PyWebIO application into Tornado, all you need is to add a to the existing Tornado application: Now, you can open for BMI calculation. For integration with other web frameworks, please refer to document. Demos • Basic demo : PyWebIO basic input and output demos and some small applications written using PyWebIO. • Data visualization demo : Data visualization with the third-party libraries, e.g., , , . Links • Document pywebio.readthedocs.io • PyWebIO Playground: Edit, Run, Share PyWebIO Code Online