{"id":23048842,"url":"https://github.com/francis-clairicia/pydiamond","last_synced_at":"2025-09-07T00:31:26.068Z","repository":{"id":40427573,"uuid":"387276818","full_name":"francis-clairicia/PyDiamond","owner":"francis-clairicia","description":"PyDiamond engine is a game engine for Python game developers.","archived":false,"fork":false,"pushed_at":"2025-07-07T19:31:43.000Z","size":48497,"stargazers_count":12,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-07T22:07:44.911Z","etag":null,"topics":["game","game-development","game-engine","game-engine-2d","pygame","pygame-library","python","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/francis-clairicia.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":"2021-07-18T22:00:21.000Z","updated_at":"2025-06-25T11:44:44.000Z","dependencies_parsed_at":"2025-06-25T12:38:04.843Z","dependency_job_id":null,"html_url":"https://github.com/francis-clairicia/PyDiamond","commit_stats":{"total_commits":988,"total_committers":6,"mean_commits":"164.66666666666666","dds":0.1761133603238867,"last_synced_commit":"ce458279e93311333d60960aca393d5dfef9ace6"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/francis-clairicia/PyDiamond","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/francis-clairicia%2FPyDiamond","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/francis-clairicia%2FPyDiamond/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/francis-clairicia%2FPyDiamond/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/francis-clairicia%2FPyDiamond/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/francis-clairicia","download_url":"https://codeload.github.com/francis-clairicia/PyDiamond/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/francis-clairicia%2FPyDiamond/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273982897,"owners_count":25202090,"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-09-06T02:00:13.247Z","response_time":2576,"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":["game","game-development","game-engine","game-engine-2d","pygame","pygame-library","python","python3"],"created_at":"2024-12-15T22:56:45.813Z","updated_at":"2025-09-07T00:31:21.033Z","avatar_url":"https://github.com/francis-clairicia.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyDiamond\n[![Build](https://github.com/francis-clairicia/PyDiamond/actions/workflows/build.yml/badge.svg)](https://github.com/francis-clairicia/PyDiamond/actions/workflows/build.yml)\n[![Test](https://github.com/francis-clairicia/PyDiamond/actions/workflows/test.yml/badge.svg)](https://github.com/francis-clairicia/PyDiamond/actions/workflows/test.yml)\n[![Lint](https://github.com/francis-clairicia/PyDiamond/actions/workflows/lint.yml/badge.svg)](https://github.com/francis-clairicia/PyDiamond/actions/workflows/lint.yml)\n\n[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)\n[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/francis-clairicia/PyDiamond/main.svg)](https://results.pre-commit.ci/latest/github/francis-clairicia/PyDiamond/main)\n\n[![PyPI](https://img.shields.io/pypi/v/pydiamond-engine)](https://pypi.org/project/pydiamond-engine/)\n[![PyPI - License](https://img.shields.io/pypi/l/pydiamond-engine)](https://github.com/francis-clairicia/PyDiamond/blob/main/LICENSE)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pydiamond-engine)\n\n[![Checked with mypy](http://www.mypy-lang.org/static/mypy_badge.svg)](http://mypy-lang.org/)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat\u0026labelColor=ef8336)](https://pycqa.github.io/isort/)\n\nPyDiamond engine is a game engine for Python game developers.\n\nThe framework uses the popular [pygame library](https://github.com/pygame/pygame/).\n\n## Installation\nThe installation can be done using `pip`:\n```\npip install pydiamond-engine\n```\n\n## Usage\nExample with the minimal requirements:\n```py\nfrom pydiamond.window.display import Window\n\ndef main() -\u003e int:\n    w: Window = Window(title=\"my window\", size=(800, 600))\n    with w.open():\n        while w.loop():\n            for event in w.process_events():\n                # do some stuff\n                pass\n            w.clear()\n            # draw your objects\n            w.refresh()\n    return 0\n\nif __name__ == \"__main__\":\n    exit(main())\n```\nThis code will open a small window.\n\n### Documentation\nComing soon. :)\n\n## Development\n### Dependencies\nPyDiamond is developed based on pygame and Python (obviously). In addition, some features of pygame are available with a specific version of the SDL.\n\nDependency version:\n- CPython \u003e= 3.10\n- pygame == 2.1.2\n- SDL \u003e= 2.0.16 (vendored in pygame)\n- SDL_image \u003e= 2.0.0 (vendored in pygame)\n- SDL_mixer \u003e= 2.0.0 (vendored in pygame)\n- Other python dependencies referred by `pyproject.toml`\n\n### Setup\nUse the following command to install all the necessary dependencies\n```sh\npython -m devtools repo\n```\n\n## Credits\n### Vendored-in packages\n- [Gradient](https://www.pygame.org/project-gradients-307-.html) module by DR0ID\n- [OrderedSet](https://github.com/rspeer/ordered-set) collection by rspeer\n\n## License\nThis project is licensed under the terms of the [GNU General Public License v3.0](https://github.com/francis-clairicia/PyDiamond/blob/main/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrancis-clairicia%2Fpydiamond","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrancis-clairicia%2Fpydiamond","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrancis-clairicia%2Fpydiamond/lists"}