{"id":19921512,"url":"https://github.com/pyapp-kit/magicgui","last_synced_at":"2025-05-14T14:07:32.688Z","repository":{"id":37048375,"uuid":"238805437","full_name":"pyapp-kit/magicgui","owner":"pyapp-kit","description":"build GUIs from type annotations","archived":false,"fork":false,"pushed_at":"2025-05-05T20:56:02.000Z","size":54110,"stargazers_count":433,"open_issues_count":66,"forks_count":52,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-05-14T07:12:29.060Z","etag":null,"topics":["autogeneration","graphical-user-interface","gui","python","type-annotations","widgets"],"latest_commit_sha":null,"homepage":"https://pyapp-kit.github.io/magicgui/","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/pyapp-kit.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"docs/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,"zenodo":null}},"created_at":"2020-02-06T23:25:47.000Z","updated_at":"2025-04-27T15:34:46.000Z","dependencies_parsed_at":"2024-03-04T15:06:19.607Z","dependency_job_id":"88ff9304-55b4-4754-9677-6aab4f92ed1f","html_url":"https://github.com/pyapp-kit/magicgui","commit_stats":{"total_commits":614,"total_committers":25,"mean_commits":24.56,"dds":"0.26547231270358307","last_synced_commit":"bf9f6630c408e64f6f1dac3904a1ac3473546a0f"},"previous_names":[],"tags_count":58,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyapp-kit%2Fmagicgui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyapp-kit%2Fmagicgui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyapp-kit%2Fmagicgui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyapp-kit%2Fmagicgui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyapp-kit","download_url":"https://codeload.github.com/pyapp-kit/magicgui/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254159194,"owners_count":22024558,"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":["autogeneration","graphical-user-interface","gui","python","type-annotations","widgets"],"created_at":"2024-11-12T22:07:47.808Z","updated_at":"2025-05-14T14:07:27.673Z","avatar_url":"https://github.com/pyapp-kit.png","language":"Python","readme":"\u003ch1 align=\"center\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/pyapp-kit/magicgui/main/resources/logo_long.png\" alt=\"magicgui\" /\u003e\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/pyapp-kit/magicgui/blob/main/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/pyapp-kit/magicgui\" alt=\"magicgui is released under the MIT license.\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://pypi.python.org/pypi/magicgui\"\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/v/magicgui.svg\" alt=\"magicgui on PyPI\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://anaconda.org/conda-forge/magicgui\"\u003e\n    \u003cimg src=\"https://img.shields.io/conda/vn/conda-forge/magicgui\" alt=\"magicgui on conda-forge\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://python.org\"\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/pyversions/magicgui.svg?color=green\" alt=\"magicgui python version support\" /\u003e\n  \u003c/a\u003e\n  \u003c/p\u003e\n  \u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/pyapp-kit/magicgui/actions/workflows/test_and_deploy.yml\"\u003e\n    \u003cimg src=\"https://github.com/pyapp-kit/magicgui/actions/workflows/test_and_deploy.yml/badge.svg\" alt=\"magicgui build status\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://codecov.io/gh/pyapp-kit/magicgui\"\u003e\n    \u003cimg src=\"https://codecov.io/gh/pyapp-kit/magicgui/branch/main/graph/badge.svg\" alt=\"magicgui code coverage\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://zenodo.org/badge/latestdoi/238805437\"\u003e\n    \u003cimg src=\"https://zenodo.org/badge/238805437.svg\" alt=\"cite magicgui\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n \u003cem\u003ebuild GUIs from type annotations, using magic.\u003c/em\u003e\n\u003c/p\u003e\n\n\n## 📖 Docs\n\n[https://pyapp-kit.github.io/magicgui/](https://pyapp-kit.github.io/magicgui/)\n\n## Installation\n\n`magicgui` uses `qtpy` to support both `pyside2` and `pyqt5` backends.  However, you\nmust have one of those installed for magicgui to work.\n\ninstall with pip\n\n```bash\npip install magicgui[pyqt5]\n# or\npip install magicgui[pyside2]\n```\n\nor with conda:\n\n```bash\nconda install -c conda-forge magicgui pyqt  # or pyside2 instead of pyqt\n```\n\n\u003e :information_source: If you'd like to help us extend support to a different backend,\n\u003e please open an [issue](https://github.com/pyapp-kit/magicgui/issues).\n\n## Basic usage\n\n```python\nfrom magicgui import magicgui\nfrom enum import Enum\n\nclass Medium(Enum):\n    Glass = 1.520\n    Oil = 1.515\n    Water = 1.333\n    Air = 1.0003\n\n# decorate your function with the @magicgui decorator\n@magicgui(call_button=\"calculate\", result_widget=True)\ndef snells_law(aoi=30.0, n1=Medium.Glass, n2=Medium.Water, degrees=True):\n    import math\n\n    aoi = math.radians(aoi) if degrees else aoi\n    try:\n        result = math.asin(n1.value * math.sin(aoi) / n2.value)\n        return math.degrees(result) if degrees else result\n    except ValueError:\n        return \"Total internal reflection!\"\n\n# your function is now capable of showing a GUI\nsnells_law.show(run=True)\n```\n\n![snells](https://raw.githubusercontent.com/pyapp-kit/magicgui/main/resources/snells.png)\n\nBut that's just the beginning!  Please see [Documentation](https://pyapp-kit.github.io/magicgui/) for many more details\nand usage examples.\n\n## Contributing\n\nContributions are welcome!\n\nSee contributing guide [here](https://github.com/pyapp-kit/magicgui/blob/main/docs/CONTRIBUTING.md).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyapp-kit%2Fmagicgui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyapp-kit%2Fmagicgui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyapp-kit%2Fmagicgui/lists"}