Rio
WebApps in pure Python. No JavaScript, HTML and CSS needed
Install / Use
/learn @rio-labs/RioREADME
Features 🧩
- Modern, declarative UI framework
- 100% Python - Zero HTML, CSS, or JavaScript required
- Over 50 Built-in components for common UI elements, such as
rio.Switch,rio.Button, andrio.Text, and many more - Integrates with modern Python tooling: Thanks to being entirely Type Safe editors can give you instant suggestions and highlight problems right away
- Apps can run both locally and on the web
- Dev tools included
- Open Source & Free forever
Example ⌨️
# Define a component that counts button clicks
class ButtonClicker(rio.Component):
# Define the attributes of the component. Rio will watch these
# for changes and automatically update the GUI.
clicks: int = 0
# Define a method that increments the click count. We'll later
# make a button that calls this method whenever it is pressed.
def _on_press(self) -> None:
self.clicks += 1
# Define the `build` method. This method essentially tells Rio
# what a ButtonClicker component looks like. Whenever the state
# of the ButtonClicker component changes, Rio will call its
# `build` method and update the GUI according to the output.
def build(self) -> rio.Component:
return rio.Column(
rio.Button('Click me', on_press=self._on_press),
rio.Text(f'You clicked the button {self.clicks} time(s)'),
)
# Create an App and tell it to display a ButtonClicker when it starts
app = rio.App(build=ButtonClicker)
app.run_in_browser() # Or `app.run_in_window()` to run as local app!
Installation 🛠️
Rio is available on PyPI, so you can install it using pip:
pip install rio-ui
Getting Started 🎓
Rio comes with a very helpful command line utility to help you out. Create a new project in one short command:
rio new
You can choose from a variety of built-in templates to get you started. Here's a complete example to create a project based on the tic-tac-toe template:
rio new my-project --type website --template "Tic-Tac-Toe"
cd my-project
rio run
You'll have your first app up and running in seconds!
Contributing 🤝
Every project thrives with a helping hand, and that's especially true for Rio. There are lots of ways to jump in, like adding new features, fixing bugs, or just sharing your ideas. Check out our Contributing Guide when submitting a Pull Request to the project. Rio keeps getting better with new features rolling out every week. Star ⭐ and 👀 watch this repo to stay in the loop!
Unless you explicitly state otherwise, any contribution submitted for inclusion in Rio shall be licensed under the terms of the Apache-2.0 license, without any additional terms or conditions.
Community Support 🫶
Join the Rio adventure and be part of an awesome fellowship! Here is how to get in touch:
- Discord (Level up your Rio skills! Join our Discord server to chat with other developers and discuss how to contribute.)
- GitHub (Spot a bug? Issues are the perfect place to let us know. Feeling super-helpful? Try fixing an existing issue and submit a PR!)
- Community Forum (Join our community forum on Github for asking questions and discussions)
- Feature Requests (Cleanest way to request a feature on GitHub)
For general help using Rio, please refer to the official Rio documentation.
Related Skills
claude-opus-4-5-migration
83.0kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
model-usage
336.9kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
feishu-drive
336.9k|
things-mac
336.9kManage Things 3 via the `things` CLI on macOS (add/update projects+todos via URL scheme; read/search/list from the local Things database)
