{"id":18008890,"url":"https://github.com/dtcooper/python-dispmanx","last_synced_at":"2025-03-26T13:31:44.588Z","repository":{"id":50743792,"uuid":"520034120","full_name":"dtcooper/python-dispmanx","owner":"dtcooper","description":"Python Wrapper for the Raspberry Pi's Dispmanx API","archived":false,"fork":false,"pushed_at":"2023-12-20T19:53:17.000Z","size":675,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-17T20:56:37.900Z","etag":null,"topics":["ctypes","dispmanx","numpy","pillow","pycairo","pygame","python","raspberry-pi"],"latest_commit_sha":null,"homepage":"https://dtcooper.github.io/python-dispmanx/","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/dtcooper.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":"2022-08-01T08:52:38.000Z","updated_at":"2024-02-11T18:54:34.000Z","dependencies_parsed_at":"2024-10-30T02:28:30.482Z","dependency_job_id":null,"html_url":"https://github.com/dtcooper/python-dispmanx","commit_stats":{"total_commits":93,"total_committers":1,"mean_commits":93.0,"dds":0.0,"last_synced_commit":"b361954c87e71c88d0aece88ae34c96b0ed664c2"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtcooper%2Fpython-dispmanx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtcooper%2Fpython-dispmanx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtcooper%2Fpython-dispmanx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtcooper%2Fpython-dispmanx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dtcooper","download_url":"https://codeload.github.com/dtcooper/python-dispmanx/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245662920,"owners_count":20652099,"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":["ctypes","dispmanx","numpy","pillow","pycairo","pygame","python","raspberry-pi"],"created_at":"2024-10-30T02:07:46.459Z","updated_at":"2025-03-26T13:31:39.573Z","avatar_url":"https://github.com/dtcooper.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003ca href=\"https://dtcooper.github.io/python-dispmanx/\"\u003eDispmanX Bindings for Python\u003c/a\u003e\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://dtcooper.github.io/python-dispmanx/\"\u003eDocumentation\u003c/a\u003e |\n  \u003ca href=\"https://pypi.org/project/dispmanx/\"\u003ePython Package Index\u003c/a\u003e\n\u003c/p\u003e\n\n## Usage\n\nInstall with pip,\n\n```bash\npip install dispmanx\n```\n\nThen try out this sample program using [pygame](https://www.pygame.org/docs/),\n\n```python\nfrom random import randint\nimport pygame\nfrom dispmanx import DispmanX\n\ndef random_color_with_alpha():\n    return tuple(randint(0, 0xFF) for _ in range(3)) + (randint(0x44, 0xFF),)\n\ndisplay = DispmanX(pixel_format=\"RGBA\")\nsurface = pygame.image.frombuffer(display.buffer, display.size, display.pixel_format)\nclock = pygame.time.Clock()\n\nfor _ in range(20):\n    surface.fill(random_color_with_alpha())\n    display.update()\n    clock.tick(2)\n\n```\n\nNext stop: [the project's documentation](https://dtcooper.github.io/python-dispmanx/).\n\n## License\n\nThis project is licensed under the [MIT License](https://opensource.org/licenses/MIT)\n\u0026mdash; see the [LICENSE](https://github.com/dtcooper/python-dispmanx/blob/main/LICENSE)\nfile for details.\n\n## Final Note\n\n**_...and remember kids, have fun!_**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdtcooper%2Fpython-dispmanx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdtcooper%2Fpython-dispmanx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdtcooper%2Fpython-dispmanx/lists"}