{"id":18086899,"url":"https://github.com/denismakogon/simple-asgi","last_synced_at":"2025-04-06T01:28:11.621Z","repository":{"id":152748738,"uuid":"165570961","full_name":"denismakogon/simple-asgi","owner":"denismakogon","description":"Simple ASGI HTTP 1.1 server implementation","archived":false,"fork":false,"pushed_at":"2019-01-14T12:56:33.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T07:45:23.396Z","etag":null,"topics":["asgi","asyncio","http","python3"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/denismakogon.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-14T00:36:57.000Z","updated_at":"2021-03-18T16:36:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"ea7ca649-e557-4672-9ea4-e5b53d13884d","html_url":"https://github.com/denismakogon/simple-asgi","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/denismakogon%2Fsimple-asgi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denismakogon%2Fsimple-asgi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denismakogon%2Fsimple-asgi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denismakogon%2Fsimple-asgi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/denismakogon","download_url":"https://codeload.github.com/denismakogon/simple-asgi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247423458,"owners_count":20936620,"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","http","python3"],"created_at":"2024-10-31T16:59:21.405Z","updated_at":"2025-04-06T01:28:11.600Z","avatar_url":"https://github.com/denismakogon.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple ASGI HTTP 1.1 server implementation\n\nThis framework was inspired by [hypercorn](https://pgjones.gitlab.io/hypercorn/index.html) framework.\n\n## How to install\n\n```bash\npip install simple-asgi\n```\n\n## Example\n\n```python\nimport os\nimport socket\n\n\nfrom simple_asgi import app\nfrom simple_asgi import response\nfrom simple_asgi import router\n\n\nasync def hello(request):\n    request_body = await request.data\n    return response.Response(body=request_body)\n\nsock_path = \"/tmp/fn.sock\"\nsock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)\n\ntry:\n    os.remove(sock_path)\nfinally:\n    sock.bind(\"/tmp/fn.sock\")\n\nrtr = router.Router()\nrtr.add(\"/call\", [\"POST\"], hello)\nhttp_app = app.SimpleASGI(name=__name__, router=rtr)\n\nhttp_app.run(sock=sock)\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenismakogon%2Fsimple-asgi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdenismakogon%2Fsimple-asgi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenismakogon%2Fsimple-asgi/lists"}