Registry / web-framework / robyn
library0.86.0pypypi✓ verified 87d ago

A super fast async Python web framework with a Rust runtime. Version 0.84.0, released recently; active development with monthly releases.

pip install robyn
INSTALL
IMPORT
SIG · ROBYN
R
robyn
web-frameworkpythonv0.86.0
Install
4.1s avg
Import
402ms
Disk
48MB
Pass rate
5/ 10
Env Coverage5 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.86.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
build_error
glibc
py 3.103.95 runs
installs and imports cleanly · install 4.1s · import 0.402s · 51MB
48MB installed
● package 48MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Robyn
from robyn import Robyn
import robyn
Robyn class is the main app class; direct import of robyn module gives you the module object, not the class.
Request
from robyn import Request
from robyn.request import Request
Request is a top-level import; there is no robyn.request submodule.
jsonify
from robyn import jsonify
from robyn.response import jsonify
jsonify is exposed at package level; submodule paths are considered private.

Minimal Robyn web server with one route.

from robyn import Robyn app = Robyn(__file__) @app.get("/") async def hello(request): return "Hello, world!" app.start(port=8080)
robyn --version
Debug
Known issues
breakingRobyn requires a Rust toolchain to compile if installing from source; the pip wheel should be pre-compiled for common platforms.
fix
Use a pre-built wheel from PyPI; if building from source, install Rust via rustup.
affects: all
gotchaThe app instance must be passed `__file__` (or a string path) as the first argument. Omitting it causes an error.
fix
Always use `app = Robyn(__file__)` or `Robyn('MyApp')`.
affects: >=0.10
deprecatedThe `@app.route()` decorator without an explicit HTTP method is deprecated; use `@app.get()`, `@app.post()`, etc.
fix
Replace `@app.route('/path')` with `@app.get('/path')`.
affects: >=0.50
Errors
Common errors & fixes
RuntimeError: Robyn must be started with app.start() or app.run()
Calling app methods like app.add_route() after app.start() has been called, or not calling start/run at all.
fix
Ensure you call `app.start(port=...)` once at the end of your script, and do not add routes after that.
ImportError: cannot import name 'Robyn' from 'robyn'
Outdated Robyn version or wrong import path (e.g., using `from robyn import robyn`).
fix
Upgrade robyn: `pip install --upgrade robyn`. Use `from robyn import Robyn`.
AttributeError: 'NoneType' object has no attribute 'send'
Async handler not returning a response, or returning None.
fix
Ensure every async route handler returns a string, dict, or Response object.
Upgrade
Version history
0.86.0latest on PyPI · released Jun 16, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources