{"id":28165519,"url":"https://github.com/alexdemure/gadasyncblock","last_synced_at":"2026-02-20T16:01:54.062Z","repository":{"id":289622879,"uuid":"971863233","full_name":"AlexDemure/gadasyncblock","owner":"AlexDemure","description":"Event loop lock detector for Python","archived":false,"fork":false,"pushed_at":"2025-04-30T09:00:54.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"production","last_synced_at":"2025-06-25T19:02:47.683Z","etag":null,"topics":["asgi-lock","async-block","async-lock","event-loop-lock","event-loop-lock-detector"],"latest_commit_sha":null,"homepage":"","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/AlexDemure.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,"zenodo":null}},"created_at":"2025-04-24T07:08:00.000Z","updated_at":"2025-04-30T09:00:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"de9fd49e-1c64-4c72-b83c-62adcd3e2b3f","html_url":"https://github.com/AlexDemure/gadasyncblock","commit_stats":null,"previous_names":["alexdemure/gadasyncblock"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AlexDemure/gadasyncblock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexDemure%2Fgadasyncblock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexDemure%2Fgadasyncblock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexDemure%2Fgadasyncblock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexDemure%2Fgadasyncblock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexDemure","download_url":"https://codeload.github.com/AlexDemure/gadasyncblock/tar.gz/refs/heads/production","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexDemure%2Fgadasyncblock/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266048626,"owners_count":23868743,"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-lock","async-block","async-lock","event-loop-lock","event-loop-lock-detector"],"created_at":"2025-05-15T12:11:42.993Z","updated_at":"2026-02-20T16:01:54.054Z","avatar_url":"https://github.com/AlexDemure.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/AlexDemure/gadasyncblock\"\u003e\n    \u003ca href=\"https://ibb.co/4gMDDpK7\"\u003e\u003cimg src=\"https://i.ibb.co/JF2bbHmK/logo.png\" alt=\"logo\" border=\"0\"\u003e\u003c/a\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  Event loop lock detector for Python.\n\u003c/p\u003e\n\n---\n\n### Installation\n\n```\npip install gadasyncblock\n```\n\n### Usage\n\n```python\nimport contextlib\n\nfrom fastapi import FastAPI\n\nfrom gadasyncblock import AsyncBlock\n# logger: asyncio.detector\n\ndetector = AsyncBlock(timeout=1)\n\n@contextlib.asynccontextmanager\nasync def lifespan(_: FastAPI):\n    detector.start()\n    yield\n    detector.shutdown()\n\n\napp = FastAPI(lifespan=lifespan)\n\n@app.post(\"/run\")\nasync def run():\n    time.sleep(2)\n    return {\"message\": \"Blocked\"}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexdemure%2Fgadasyncblock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexdemure%2Fgadasyncblock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexdemure%2Fgadasyncblock/lists"}