{"id":27329,"library":"ratio","title":"Ratio","description":"Ratio is a Python web framework designed for productivity, inspired by Flask and FastAPI. It provides a minimalist, expressive routing system and encourages rapid development. The current version is 0.4.0, targeting Python >=3.11, with a monthly release cycle.","status":"active","version":"0.4.0","language":"python","source_language":"en","source_url":"https://github.com/your-org/ratio","tags":["web framework","minimal","productivity"],"install":[{"cmd":"pip install ratio","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"The main class is named Ratio, not Application.","wrong":"from ratio import Application","symbol":"Ratio","correct":"from ratio import Ratio"}],"quickstart":{"code":"from ratio import Ratio\n\napp = Ratio()\n\n@app.route('/')\ndef home(request):\n    return 'Hello, World!'\n\nif __name__ == '__main__':\n    app.run()","lang":"python","description":"Minimal Ratio application with a single route."},"warnings":[{"fix":"Use `from ratio import Ratio`.","message":"Version 0.3.0 changed the import path from `ratio.core` to `ratio`. Old code using `from ratio.core import Ratio` will break.","severity":"gotcha","affected_versions":">=0.3.0"},{"fix":"Define handlers with `def handler(request):` even if request is unused.","message":"Route handlers must accept at least a `request` parameter. Omitting it causes a TypeError at runtime.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Change import to `from ratio import Ratio`.","cause":"Import path changed in version 0.3.0.","error":"ModuleNotFoundError: No module named 'ratio.core'"},{"fix":"Use @app.route('/path') not @app.route('/path')() or @app.route.","cause":"Using @app.route without parentheses or arguments incorrectly.","error":"TypeError: route() missing 1 required positional argument: 'func'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}