{"id":19577176,"url":"https://github.com/asyncgui/asyncpygame","last_synced_at":"2026-02-25T17:04:40.534Z","repository":{"id":213798262,"uuid":"718580832","full_name":"asyncgui/asyncpygame","owner":"asyncgui","description":"Async/await-based framework for PyGame ","archived":false,"fork":false,"pushed_at":"2025-03-30T05:52:17.000Z","size":658,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-26T07:21:59.697Z","etag":null,"topics":["pygame"],"latest_commit_sha":null,"homepage":"https://asyncgui.github.io/asyncpygame/","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/asyncgui.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":"2023-11-14T11:35:14.000Z","updated_at":"2024-12-26T05:27:59.000Z","dependencies_parsed_at":"2023-12-23T07:27:12.701Z","dependency_job_id":"6b9f80b2-41e6-49b2-9b36-ec963fc31771","html_url":"https://github.com/asyncgui/asyncpygame","commit_stats":null,"previous_names":["asyncgui/asyncpygame"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/asyncgui/asyncpygame","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asyncgui%2Fasyncpygame","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asyncgui%2Fasyncpygame/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asyncgui%2Fasyncpygame/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asyncgui%2Fasyncpygame/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asyncgui","download_url":"https://codeload.github.com/asyncgui/asyncpygame/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asyncgui%2Fasyncpygame/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29831853,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T15:41:19.027Z","status":"ssl_error","status_checked_at":"2026-02-25T15:40:47.150Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["pygame"],"created_at":"2024-11-11T07:04:52.333Z","updated_at":"2026-02-25T17:04:40.492Z","avatar_url":"https://github.com/asyncgui.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AsyncPygame\n\nLet's say you want to do:\n\n1. `print('A')`\n1. wait for 1000ms\n1. `print('B')`\n1. wait for a mouse button to be pressed\n1. `print('C')`\n\nin that order.\nThe `asyncpygame` module allows you to implement that like this:\n\n```python\nasync def what_you_want_to_do(*, clock, sdlevent, **kwargs):\n    print('A')\n    await clock.sleep(1000)\n    print('B')\n    e = await sdlevent.wait(MOUSEBUTTONDOWN)\n    print('C')\n```\n\n[Youtube](https://youtu.be/kvy0_aVUFLM)  \n[API Reference](https://asyncgui.github.io/asyncpygame/)\n\nCurrently, there are no proper tutorials available.\nPlease refer to the examples.\n\n## Installation\n\nPin the minor version.\n\n```text\npoetry add asyncpygame@~0.1\npip install \"asyncpygame\u003e=0.1,\u003c0.2\"\n```\n\n\n## Tested on\n\n- CPython 3.10 + pygame-ce 2.5\n- CPython 3.11 + pygame-ce 2.5\n- CPython 3.12 + pygame-ce 2.5\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasyncgui%2Fasyncpygame","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasyncgui%2Fasyncpygame","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasyncgui%2Fasyncpygame/lists"}