{"id":15477043,"url":"https://github.com/srittau/rouver","last_synced_at":"2026-01-30T08:49:15.386Z","repository":{"id":26152337,"uuid":"107496721","full_name":"srittau/rouver","owner":"srittau","description":"Python 3 microframework","archived":false,"fork":false,"pushed_at":"2025-06-16T11:01:54.000Z","size":883,"stargazers_count":1,"open_issues_count":8,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-19T05:02:45.360Z","etag":null,"topics":["microframework","python","python3","wsgi"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/srittau.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-10-19T04:04:40.000Z","updated_at":"2025-06-16T11:01:51.000Z","dependencies_parsed_at":"2023-02-19T16:15:48.710Z","dependency_job_id":"9921270b-c28e-4d60-989c-faf2043a56d3","html_url":"https://github.com/srittau/rouver","commit_stats":{"total_commits":693,"total_committers":3,"mean_commits":231.0,"dds":"0.43001443001442996","last_synced_commit":"1bc795ab030c6a7652fc4b3bb418c460d7638090"},"previous_names":[],"tags_count":58,"template":false,"template_full_name":null,"purl":"pkg:github/srittau/rouver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srittau%2Frouver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srittau%2Frouver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srittau%2Frouver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srittau%2Frouver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/srittau","download_url":"https://codeload.github.com/srittau/rouver/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srittau%2Frouver/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260690823,"owners_count":23047097,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["microframework","python","python3","wsgi"],"created_at":"2024-10-02T03:42:38.447Z","updated_at":"2026-01-30T08:49:15.381Z","avatar_url":"https://github.com/srittau.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rouver\n\nA microframework for Python 3, based on werkzeug.\n\n![Supported Python Versions](https://img.shields.io/pypi/pyversions/rouver)\n[![GitHub](https://img.shields.io/github/release/srittau/rouver/all.svg)](https://github.com/srittau/rouver/releases/)\n[![pypi](https://img.shields.io/pypi/v/rouver.svg)](https://pypi.python.org/pypi/rouver/)\n[![MIT License](https://img.shields.io/github/license/srittau/rouver)](https://github.com/srittau/rouver/blob/main/LICENSE)\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/srittau/rouver/test-and-lint.yml)](https://github.com/srittau/rouver/actions/workflows/test-and-lint.yml)\n\n## Routing\n\n```python\n\u003e\u003e\u003e from rouver.router import Router\n\u003e\u003e\u003e from rouver.response import respond_with_html, respond_with_json\n\u003e\u003e\u003e def get_index(environ, start_response):\n...     return respond_with_html(start_response, \"\u003cdiv\u003eFoo\u003c/div\u003e\")\n\u003e\u003e\u003e def get_count(environ, start_response):\n...     return respond_with_json(start_response, {\"count\": 42})\n\u003e\u003e\u003e router = Router()\n\u003e\u003e\u003e router.add_routes([\n...     (\"\", \"GET\", get_index),\n...     (\"count\", \"GET\", get_count),\n... ])\n\n```\n\nRoutes with placeholders:\n\n```python\n\u003e\u003e\u003e def get_addition(environ, start_response):\n...     num1, num2 = path\n...     return response_with_json(start_response, {\"result\": num1 + num2})\n\u003e\u003e\u003e def numeric_arg(request, path, value):\n...     return int(value)\n\u003e\u003e\u003e router.add_template_handler(\"numeric\", numeric_arg)\n\u003e\u003e\u003e router.add_routes([\n...     (\"add/{numeric}/{numeric}\", \"GET\", get_addition),\n... ])\n```\n\nRoutes with wildcards:\n\n```python\n\u003e\u003e\u003e def get_wildcard(environ, start_response):\n...     # environ[\"rouver.wildcard_path\"] contains the remaining path\n...     return respond(start_response)\n\u003e\u003e\u003e router.add_routes([\n...     (\"wild/*\", \"GET\", get_wildcard),\n... ])\n```\n\nSub-routers:\n\n```python\n\u003e\u003e\u003e def get_sub(environ, start_response):\n...     return respond(start_response)\n\u003e\u003e\u003e sub_router = Router()\n\u003e\u003e\u003e sub_router.add_routes([\n...     (\"sub\", \"GET\", get_sub),\n... ])\n\u003e\u003e\u003e router.add_sub_router(\"parent\", sub_router)\n```\n\n## Argument Handling\n\n```python\n\u003e\u003e\u003e from rouver.args import Multiplicity, parse_args\n\u003e\u003e\u003e from rouver.response import respond_with_json\n\u003e\u003e\u003e def get_count_with_args(request, path, start_response):\n...     args = parse_args(request.environ, [\n...         (\"count\", int, Multiplicity.REQUIRED),\n...     ])\n...     return respond_with_json({\"count\": args[\"count\"]})\n```\n\n## WSGI Testing\n\n```python\n\u003e\u003e\u003e from rouver.test import create_request, test_wsgi_app\n\u003e\u003e\u003e request = create_request(\"GET\", \"/my/path\")\n\u003e\u003e\u003e response = test_wsgi_app(app, request)\n\u003e\u003e\u003e response.assert_status(HTTPStatus.OK)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrittau%2Frouver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrittau%2Frouver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrittau%2Frouver/lists"}