explaingit

chinmayjoshi4130/python-pybro-ui

Analysis updated 2026-05-18

1PythonAudience · developerComplexity · 2/5Setup · easy

TLDR

A Python library that generates a live browser UI from pure Python code, letting you wrap scripts, APIs, or automation tools in a clickable interface with no HTML, JavaScript, or build steps.

Mindmap

mindmap
  root((Pybro))
    What it does
      Python to browser UI
      No HTML needed
      Live updates
    Widgets
      Inputs buttons
      Tables progress bars
      Markdown blocks
    Deployment
      Localhost
      Shared LAN mode
      Distributed sandbox
    How it works
      AST compilation
      Server-Sent Events
      Python callbacks
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Wrap a Python data pipeline in a form-based browser interface so non-technical teammates can run it with a button click.

USE CASE 2

Build a quick internal admin tool around a Python script without learning HTML or JavaScript.

USE CASE 3

Prototype a UI for an automation script on an Android phone using Termux and a mobile browser.

What is it built with?

PythonServer-Sent EventsHTMLCSS

How does it compare?

chinmayjoshi4130/python-pybro-uia-bissell/unleash-liteabhiinnovates/whatsapp-hr-assistant
Stars111
LanguagePythonPythonPython
Setup difficultyeasyhardhard
Complexity2/54/53/5
Audiencedeveloperresearcherdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Early-stage software with possible breaking changes, developed primarily for Android Termux but runs on any platform with Python.

In plain English

Pybro is a Python library that lets you build a working browser-based interface for your Python scripts without writing any HTML, JavaScript, or CSS. You describe the layout in plain Python using calls like ui.title, ui.input_text, and ui.button_callback, and Pybro launches a local web server and opens the interface in any browser in about ten seconds. The main idea is to give developers a fast way to wrap a backend script, an API call, a data pipeline, or an automation routine in a usable interface so other people can interact with it or provide feedback before committing to building a proper frontend. It works without Node.js or build steps. Under the hood, Pybro reads your script to understand its layout without actually running the whole file, which keeps things predictable. When someone interacts with a form element, the change is broadcast to all connected browsers in real time using a built-in server push mechanism. Callbacks run your Python functions and push the results back to update specific parts of the page. Client-side formulas such as price times quantity update instantly in the browser without a server round trip. The library includes a wide range of widgets: text inputs, checkboxes, dropdowns, sliders, toggle switches, date pickers, progress bars, tables, Markdown blocks, and output text areas. You can apply inline styles or CSS classes to any element, and a single call sets the global color theme for the whole page. There are three deployment modes. Localhost is for personal use on one machine. Shared mode makes the tool available to anyone on the same local network who has an access key. A third experimental mode lets a remote machine download the project and run callbacks locally. The README notes this is early-stage software, built and tested primarily on Android with Termux, and may have breaking changes.

Copy-paste prompts

Prompt 1
I have a Python script that calls an API and returns data. Show me how to use Pybro to wrap it in a browser page with a text input and a button that displays the result in an output area.
Prompt 2
Using Pybro, how do I build a table that fills with data from a Python function when a dropdown changes?
Prompt 3
How do I run Pybro in shared mode so teammates on the same local network can open the tool using an access key?

Frequently asked questions

What is python-pybro-ui?

A Python library that generates a live browser UI from pure Python code, letting you wrap scripts, APIs, or automation tools in a clickable interface with no HTML, JavaScript, or build steps.

What language is python-pybro-ui written in?

Mainly Python. The stack also includes Python, Server-Sent Events, HTML.

How hard is python-pybro-ui to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is python-pybro-ui for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Scan in gitsafehub Deploy in gitdeployhub chinmayjoshi4130 on gitmyhub

Verify against the repo before relying on details.