Open-source project
rio-labs/rio avatar
rio-labs/rio

Rio is a component framework in Python with a browser bundle you never write

WebApps in pure Python. No JavaScript, HTML and CSS needed

3,650 stars161 forksPythonApache-2.0

At a glance

What is it?
rio-labs/rio is a declarative UI framework whose central bet is that you should never open an HTML, CSS or JavaScript file. The mechanism is a prebuilt frontend bundle that ships with the package and brings its own syntax highlighting, maths rendering, markdown parsing and accessibility testing, while the code you write is a class with typed attributes and a build method.
Who is it for?
Rio suits a Python developer who wants a desktop-like or web app with real components and does not want to maintain a frontend build. It does not suit someone who needs control over the emitted markup or the styling layer, since the abstraction is the point and not incidental.
Can I use it commercially?
Yes. Apache-2.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository received new commits within the last day.
What is it written in?
Mainly Python, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 23, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • rio-labs/rio3,650 ★ · +8
Star history
Repository2026-09-112026-11-23
rio-labs/rio3.6k3.7k

8 Stars in the last 73 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

The package name and the project name differ

The first thing that trips anyone up is naming. The project calls itself Rio, the repository is named after the same word, and the documentation lives on a domain of its own, but the distribution on the package index is called something else again. The install command therefore does not mention the word in the documentation's own vocabulary, which is a small thing that costs a newcomer a search. It is also worth noticing where the documentation is hosted: the tutorial, the examples, the docs and the source-code link are spread across two domains, with the former three on the documentation site and the last on the code host. None of that is a problem, but it means the readme is an index rather than a place you can read.

bash
pip install rio-ui

The four browser dependencies are the whole bet

The design claim is that you need no JavaScript, and the mechanism is visible in the frontend build configuration rather than in the prose. That private manifest lists exactly four runtime dependencies and every one of them is something a browser bundle needs and an author should never have to think about: an accessibility testing library, a syntax highlighter, an expression evaluator for maths, and a markdown parser. The development side adds a stylesheet compiler, the TypeScript compiler and a bundler, plus a compression plugin. So the claim holds in a specific sense: you write no JavaScript, and a framework-authored bundle does it for you. What it does not mean is that no JavaScript runs, because a substantial amount does, it is simply built and versioned alongside the Python rather than by you.

A component is a class with typed attributes and a build method

The worked example defines a component by subclassing the framework's base class and declaring an attribute with a type annotation and a default. The framework watches that attribute for changes and updates the interface automatically, which is the whole reactive model in one line. A method increments the attribute when the user presses something, and a build method describes what the component looks like. There is no separate template file, no virtual DOM written by hand and no event binding syntax to learn, because the build method returns component instances rather than markup. The readme's copy of this example is cut off mid-sentence in the build method, which is worth knowing before you conclude your editor is misbehaving.

The project command takes a type and a template name

The command line utility creates a project from a template, and the documented example passes three things: a project name, a type flag naming the kind of application, and a template name in quotation marks. That the template is a display name rather than a slug, complete with a hyphen, tells you the templates are meant to be chosen by someone browsing rather than by a script. The type flag exists because the framework targets more than one destination, and the getting-started walkthrough finishes by changing into the new directory and running it, which is the only run command the readme gives. There is no mention of a development server flag, a port, or a hot reload switch, so if you need those they are in the documentation rather than in the readme.

Every dependency carries an upper bound

The Python manifest has around twenty-seven runtime dependencies and every single one is written with both a floor and a ceiling rather than an open range. That is a deliberate and unusual house style: it means a fresh install resolves to a known-good set, and it also means that when one of those ceilings falls behind a release you actually want, you have to edit the constraint rather than wait for a new version. The floor is Python 3.10, and the version number itself is declared dynamic rather than written into the file, so it comes from somewhere else at build time. The list also explains what kind of project this is: a web server and its transport, an imaging library, a fuzzy matching library, a CSS parser, a file watcher for reload, and a cluster of smaller utilities whose names suggest internal tooling that has been published rather than kept private.

The audience classifiers name finance and insurance

The distribution metadata declares three intended audiences, and two of them are not the usual ones for a component framework. Developers are listed first, and then the financial and insurance industry, then the information technology industry. That pairing is a signal about where the author expects this to be deployed: an internal tool at an insurer or a bank, running on a desktop, where the operator is a Python programmer rather than a frontend one, and where the cost of shipping a JavaScript build toolchain is higher than the cost of accepting a framework's abstractions. The project is also classified as beta in the same metadata, which is worth pairing with the readme's claim that new features roll out every week.

The same tree runs locally and on the web

Running the same application on a developer machine and on the web is stated twice in the readme, once in the opening paragraph and once in the feature list, which suggests it is the capability the author most wants to be known for. The repository layout supports the claim rather than contradicting it: there is a frontend directory holding the browser-side sources that get bundled, a directory of raw icons, an extensions directory for adding components, and separate directories for documentation, scripts, tests and static assets. So the shipped package carries a prebuilt bundle rather than asking the consumer to run a bundler, and the claim is that the difference between a local run and a web run is deployment rather than code.

Editorial conclusion

Rio suits a Python developer who wants a desktop-like or web app with real components and does not want to maintain a frontend build. It does not suit someone who needs control over the emitted markup or the styling layer, since the abstraction is the point and not incidental. Before adopting it, note that the package is published under a different name from the project, that the framework is classified as beta, and that every dependency carries an upper bound you will eventually have to raise.

Frequently asked questions

How do I install and start a Rio project?

Install the distribution from the package index, then use the framework's own command to create a project from a built-in template, naming the project, the type of application and the template. You change into the new directory and run it. The full example in the readme uses a tic-tac-toe template.

Do I have to know HTML and CSS to use Rio?

No, and that is the project's central claim: it is based entirely on Python, and you need not write a single line of HTML, CSS or JavaScript. JavaScript does run in the browser, but it is a prebuilt bundle shipped with the framework rather than something you author or build yourself.

What is the difference between Rio and a normal web framework?

The readme frames it as bringing React-style components to Python: you subclass a base class, declare typed attributes that the framework watches, and implement a build method describing what the component looks like. There are over fifty built-in components, and the framework is classified as beta in its distribution metadata.

Official sources

  1. License: Apache-2.0
  2. Project website
  3. README
  4. Releases
  5. rio-labs/rio on GitHub
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/rio-labs-rio.svg)](https://hysenlabs.com/projects/rio-labs-rio)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/rio-labs-rio.svg)](https://hysenlabs.com/projects/rio-labs-rio)

Was this useful?