{"id":20785441,"url":"https://github.com/pocketpy/raylib-bindings","last_synced_at":"2025-05-05T14:42:55.074Z","repository":{"id":197249344,"uuid":"698280937","full_name":"pocketpy/raylib-bindings","owner":"pocketpy","description":"pocketpy bindings for raylib in C11 (.c \u0026 .pyi files)","archived":false,"fork":false,"pushed_at":"2024-11-04T05:54:52.000Z","size":66,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-01T17:56:28.272Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","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/pocketpy.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":"2023-09-29T15:00:21.000Z","updated_at":"2025-01-24T23:01:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"badcdca2-685c-4339-9c6e-50e56d20a912","html_url":"https://github.com/pocketpy/raylib-bindings","commit_stats":null,"previous_names":["blueloveth/pkpy-bindings","pocketpy/raylib-bindings"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocketpy%2Fraylib-bindings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocketpy%2Fraylib-bindings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocketpy%2Fraylib-bindings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocketpy%2Fraylib-bindings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pocketpy","download_url":"https://codeload.github.com/pocketpy/raylib-bindings/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252516271,"owners_count":21760749,"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":[],"created_at":"2024-11-17T14:45:40.082Z","updated_at":"2025-05-05T14:42:55.053Z","avatar_url":"https://github.com/pocketpy.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# raylib-bindings\n\nThis repo contains pocketpy bindings for raylib.\n\n**Current raylib version: `5.1-dev`**\n\n## Requirements\n\n+ Python 3.9 or higher\n\n## Generate raylib's bindings\n\n```\npip install pycparser\n\npython gen_raylib.py\n```\n\nThis generates two files:\n\n+ [output/raylib.c](https://github.com/pocketpy/raylib-bindings/blob/main/output/raylib.c)\n+ [output/raylib.pyi](https://github.com/pocketpy/raylib-bindings/blob/main/output/raylib.pyi)\n\nYou can take these two files directly into your project.\n\n## Write a `main.py` file\n\n```python\nimport raylib as rl\n\nrl.InitWindow(800, 450, \"raylib [core] example - basic window\")\n\nRAYWHITE = rl.Color(34, 34, 34, 255)\nLIGHTGRAY = rl.Color(200, 200, 200, 255)\n\nwhile not rl.WindowShouldClose():\n    rl.BeginDrawing()\n    rl.ClearBackground(RAYWHITE)\n    rl.DrawText(\"Congrats! You created your first window!\", 190, 200, 20, LIGHTGRAY)\n    rl.EndDrawing()\n\nrl.CloseWindow()\n```\n\n## Build the example\n\n```bash\ncmake -B build -DCMAKE_BUILD_TYPE=Release\ncmake --build build --config Release\n\n./build/raylib_test\n```\n\n![raylibw_test.png](raylibw_test.png)\n\n## Limitations\n\n+ variadic functions are not supported\n+ callbacks are not supported\n\n## References\n\n+ [pocketpy](https://github.com/pocketpy/pocketpy)\n+ [raylib](https://github.com/raysan5/raylib)\n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpocketpy%2Fraylib-bindings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpocketpy%2Fraylib-bindings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpocketpy%2Fraylib-bindings/lists"}