{"id":15442515,"url":"https://github.com/galacticdynamics/plotting_backends","last_synced_at":"2025-04-19T19:56:55.884Z","repository":{"id":257793213,"uuid":"862468680","full_name":"GalacticDynamics/plotting_backends","owner":"GalacticDynamics","description":"Plotting dispatch backends.","archived":false,"fork":false,"pushed_at":"2025-04-09T03:52:31.000Z","size":38,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T04:28:11.508Z","etag":null,"topics":["matplotlib","multiple-dispatch","plotting","python"],"latest_commit_sha":null,"homepage":"","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/GalacticDynamics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","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":"2024-09-24T16:44:38.000Z","updated_at":"2025-04-09T03:59:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"b1275458-97c4-4c4c-9578-9133e4021b8d","html_url":"https://github.com/GalacticDynamics/plotting_backends","commit_stats":{"total_commits":6,"total_committers":3,"mean_commits":2.0,"dds":"0.33333333333333337","last_synced_commit":"ad2ec5aef72a2d50fc5780e115577cf384c8765a"},"previous_names":["galacticdynamics/plotting_backends"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GalacticDynamics%2Fplotting_backends","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GalacticDynamics%2Fplotting_backends/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GalacticDynamics%2Fplotting_backends/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GalacticDynamics%2Fplotting_backends/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GalacticDynamics","download_url":"https://codeload.github.com/GalacticDynamics/plotting_backends/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249787109,"owners_count":21325569,"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":["matplotlib","multiple-dispatch","plotting","python"],"created_at":"2024-10-01T19:28:15.247Z","updated_at":"2025-04-19T19:56:55.866Z","avatar_url":"https://github.com/GalacticDynamics.png","language":"Python","readme":"\u003ch1 align='center'\u003e plotting_backends \u003c/h1\u003e\n\u003ch3 align=\"center\"\u003e plotting dispatch backends \u003c/h3\u003e\n\n## Installation\n\n[![PyPI platforms][pypi-platforms]][pypi-link]\n[![PyPI version][pypi-version]][pypi-link]\n\n```bash\npip install plotting_backends\n```\n\n## Examples\n\n### `functools.singledispatch`\n\nThis shows how to use `plotting_backends` with `functools.singledispatch`.\n\n```python\nimport plotting_backends\nfrom functools import singledispatch\n\n\n@singledispatch\ndef plotting_func(\n    backend: type[plotting_backends.AbstractPlottingBackend], x: Any, y: Any\n) -\u003e None: ...\n\n\n@plotting_func.register\ndef matplotlib(\n    backend: type[plotting_backends.MatplotlibBackend], x: Any, y: Any\n) -\u003e None: ...\n```\n\n### `plum` (multiple dispatch)\n\nThis example shows how to use `plotting_backends` in conjunction with `plum`, a\nmultiple dispatch library.\n\n```python\nimport plotting_backends\nfrom plum import dispatch\n\n\n@dispatch.abstract\ndef plotting_func(\n    backend: type[plotting_backends.AbstractPlottingBackend], x: Any, y: Any\n) -\u003e None: ...\n\n\n@dispatch\ndef plotting_func(\n    backend: type[plotting_backends.MatplotlibBackend], x: Any, y: Any\n) -\u003e None: ...\n```\n\n## Development\n\n[![Actions Status][actions-badge]][actions-link]\n[![ruff status][ruff-badge]][ruff-link]\n\nWe welcome contributions!\n\n\u003c!-- prettier-ignore-start --\u003e\n\n[actions-badge]:            https://github.com/GalacticDynamics/plotting_backends/workflows/CI/badge.svg\n[actions-link]:             https://github.com/GalacticDynamics/plotting_backends/actions\n[pypi-link]:                https://pypi.org/project/plotting_backends/\n[pypi-platforms]:           https://img.shields.io/pypi/pyversions/plotting_backends\n[pypi-version]:             https://img.shields.io/pypi/v/plotting_backends\n[ruff-badge]:               https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json\n[ruff-link]:                https://github.com/astral-sh/ruff\n\n\u003c!-- prettier-ignore-end --\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgalacticdynamics%2Fplotting_backends","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgalacticdynamics%2Fplotting_backends","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgalacticdynamics%2Fplotting_backends/lists"}