{"id":21884,"library":"robyn","title":"Robyn","description":"A super fast async Python web framework with a Rust runtime. Version 0.84.0, released recently; active development with monthly releases.","status":"active","version":"0.84.0","language":"python","source_language":"en","source_url":"https://github.com/sparckles/robyn","tags":["web-framework","async","rust","high-performance","python3"],"install":[{"cmd":"pip install robyn","lang":"bash","label":"pip"}],"dependencies":[],"imports":[{"note":"Robyn class is the main app class; direct import of robyn module gives you the module object, not the class.","wrong":"import robyn","symbol":"Robyn","correct":"from robyn import Robyn"},{"note":"Request is a top-level import; there is no robyn.request submodule.","wrong":"from robyn.request import Request","symbol":"Request","correct":"from robyn import Request"},{"note":"jsonify is exposed at package level; submodule paths are considered private.","wrong":"from robyn.response import jsonify","symbol":"jsonify","correct":"from robyn import jsonify"}],"quickstart":{"code":"from robyn import Robyn\n\napp = Robyn(__file__)\n\n@app.get(\"/\")\nasync def hello(request):\n    return \"Hello, world!\"\n\napp.start(port=8080)\n","lang":"python","description":"Minimal Robyn web server with one route."},"warnings":[{"fix":"Use a pre-built wheel from PyPI; if building from source, install Rust via rustup.","message":"Robyn requires a Rust toolchain to compile if installing from source; the pip wheel should be pre-compiled for common platforms.","severity":"breaking","affected_versions":"all"},{"fix":"Always use `app = Robyn(__file__)` or `Robyn('MyApp')`.","message":"The app instance must be passed `__file__` (or a string path) as the first argument. Omitting it causes an error.","severity":"gotcha","affected_versions":">=0.10"},{"fix":"Replace `@app.route('/path')` with `@app.get('/path')`.","message":"The `@app.route()` decorator without an explicit HTTP method is deprecated; use `@app.get()`, `@app.post()`, etc.","severity":"deprecated","affected_versions":">=0.50"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Ensure you call `app.start(port=...)` once at the end of your script, and do not add routes after that.","cause":"Calling app methods like app.add_route() after app.start() has been called, or not calling start/run at all.","error":"RuntimeError: Robyn must be started with app.start() or app.run()"},{"fix":"Upgrade robyn: `pip install --upgrade robyn`. Use `from robyn import Robyn`.","cause":"Outdated Robyn version or wrong import path (e.g., using `from robyn import robyn`).","error":"ImportError: cannot import name 'Robyn' from 'robyn'"},{"fix":"Ensure every async route handler returns a string, dict, or Response object.","cause":"Async handler not returning a response, or returning None.","error":"AttributeError: 'NoneType' object has no attribute 'send'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}