{"id":30581484,"url":"https://github.com/vizonex/c-asyncio","last_synced_at":"2025-08-29T06:34:25.879Z","repository":{"id":305440943,"uuid":"1022892577","full_name":"Vizonex/c-asyncio","owner":"Vizonex","description":"Object Recast Hack Meant to Expose Python's asyncio module in C \u0026 Cython","archived":false,"fork":false,"pushed_at":"2025-07-20T04:50:35.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-20T06:38:49.619Z","etag":null,"topics":["asyncio","asyncio-api-wrapper","c-api","cpython","cython"],"latest_commit_sha":null,"homepage":"","language":"C","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/Vizonex.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-07-20T04:28:37.000Z","updated_at":"2025-07-20T04:53:30.000Z","dependencies_parsed_at":"2025-07-20T06:38:52.205Z","dependency_job_id":"679e9511-3f71-426a-924f-a43ef9249a8e","html_url":"https://github.com/Vizonex/c-asyncio","commit_stats":null,"previous_names":["vizonex/python-asyncio-capi"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Vizonex/c-asyncio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vizonex%2Fc-asyncio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vizonex%2Fc-asyncio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vizonex%2Fc-asyncio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vizonex%2Fc-asyncio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vizonex","download_url":"https://codeload.github.com/Vizonex/c-asyncio/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vizonex%2Fc-asyncio/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272642101,"owners_count":24968809,"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","status":"online","status_checked_at":"2025-08-29T02:00:10.610Z","response_time":87,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["asyncio","asyncio-api-wrapper","c-api","cpython","cython"],"created_at":"2025-08-29T06:34:25.362Z","updated_at":"2025-08-29T06:34:25.864Z","avatar_url":"https://github.com/Vizonex.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python-Asyncio-CAPI\nObject Recast Hack Meant to Expose Python's asyncio module in C \u0026amp; Cython.\nMy Reason behind making this repo was to expose Some Interal Object Data to make asyncio run a bit smoother in Cython \u0026 C \nsince uvloop and winloop work heavily with these kinds of objects. \n\nCurrently No C-API Capsule exists for the Asyncio Module, there is the Socket C-API Capsule \nhowever which were even lucky exists in the first place but even it is private use only. \n\nIn order for this to work we have to make a fake/realistic looking C-API Capsule ourselves\nand I was mainly intrested in implementing the Future Object and Task Object as these\nitems are used the most in python asyncio. By having a C-API readily avalible for these\nobjects it is possible to optimize both uvloop, winloop and other low-level projects \nthat utilize asyncio.\n\nOriginally I was going to just have this in winloop but seeing the scale/size and need\nfor testing with pytest (simillar to what multidict does) I knew we needed a seperate place\nto pull this all into so the smart thing for me to do was make a new repo and jam in the header \nfile I am slowly editing that currently supports 3.9 and above.\n\nIt is likely that this could eventually become a Cython Library on Pypi however but we shall see...\n \n\nCurrently I've mainly taken intrest in doing the _asyncio.Future Object but maybe we can look into implementing _asyncio.Task later\njust depends on how much winloop utilizes task stepping.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvizonex%2Fc-asyncio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvizonex%2Fc-asyncio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvizonex%2Fc-asyncio/lists"}