{"id":13598571,"url":"https://github.com/qweeze/nanoasgi","last_synced_at":"2025-04-21T19:33:28.648Z","repository":{"id":43141498,"uuid":"317949988","full_name":"qweeze/nanoasgi","owner":"qweeze","description":"A toy ASGI web framework","archived":false,"fork":false,"pushed_at":"2020-12-21T18:28:46.000Z","size":7,"stargazers_count":23,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-01T15:50:23.927Z","etag":null,"topics":["asgi","asyncio","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qweeze.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-02T18:08:13.000Z","updated_at":"2025-02-23T05:38:45.000Z","dependencies_parsed_at":"2022-08-30T03:01:52.747Z","dependency_job_id":null,"html_url":"https://github.com/qweeze/nanoasgi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qweeze%2Fnanoasgi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qweeze%2Fnanoasgi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qweeze%2Fnanoasgi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qweeze%2Fnanoasgi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qweeze","download_url":"https://codeload.github.com/qweeze/nanoasgi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250120225,"owners_count":21378155,"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":["asgi","asyncio","python"],"created_at":"2024-08-01T17:00:53.782Z","updated_at":"2025-04-21T19:33:28.416Z","avatar_url":"https://github.com/qweeze.png","language":"Python","funding_links":[],"categories":["Resources","Micro-frameworks"],"sub_categories":["Experiments and examples","Async"],"readme":"### nanoasgi\nThis is a toy ASGI web framework. It has zero dependencies and only 170 lines of code. I wrote it to play around with ASGI and to study how frameworks work under the hood.\nPython \u003e= 3.7 is required.\n\n#### Example:\n```python\n# example.py\nfrom nanoasgi import App\n\n\napp = App()\n\n\n@app.on('startup')\nasync def on_startup():\n    print('Ready to serve requests')\n\n\n@app.on('shutdown')\nasync def on_shutdown():\n    print('Shutting down')\n\n\n@app.route('GET', '/api/hello/{name}/')\nasync def hello_handler(request, name):\n    return Response(\n        {'result': f'Hello {name}!'},\n        status=200,\n        headers=[('Content-Type', 'application/json')],\n    )\n```\n```bash\n$ uvicorn example:app\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqweeze%2Fnanoasgi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqweeze%2Fnanoasgi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqweeze%2Fnanoasgi/lists"}