{"id":15044976,"url":"https://github.com/jss95/dawiq","last_synced_at":"2025-10-24T16:32:09.797Z","repository":{"id":47077169,"uuid":"515813810","full_name":"JSS95/dawiq","owner":"JSS95","description":"Python package to build Qt Widget from Dataclass","archived":false,"fork":false,"pushed_at":"2023-09-26T06:46:32.000Z","size":399,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-31T03:26:49.064Z","etag":null,"topics":["dataclasses","python","qt"],"latest_commit_sha":null,"homepage":"https://dawiq.readthedocs.io/","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/JSS95.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-07-20T03:00:55.000Z","updated_at":"2024-05-28T15:04:16.000Z","dependencies_parsed_at":"2024-09-25T01:55:20.703Z","dependency_job_id":"9cc769f3-32cb-4271-bf46-ce2e9a58e6f3","html_url":"https://github.com/JSS95/dawiq","commit_stats":{"total_commits":269,"total_committers":2,"mean_commits":134.5,"dds":"0.052044609665427455","last_synced_commit":"060589d2878b7a9f140cdaa93f86968d0867d133"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JSS95%2Fdawiq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JSS95%2Fdawiq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JSS95%2Fdawiq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JSS95%2Fdawiq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JSS95","download_url":"https://codeload.github.com/JSS95/dawiq/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238008510,"owners_count":19401265,"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":["dataclasses","python","qt"],"created_at":"2024-09-24T20:51:18.173Z","updated_at":"2025-10-24T16:32:09.077Z","avatar_url":"https://github.com/JSS95.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DaWiQ - Dataclass Widget with Qt\n\n[![PyPI version](https://badge.fury.io/py/DaWiQ.svg)](https://badge.fury.io/py/DaWiQ)\n[![Python Version](https://img.shields.io/pypi/pyversions/dawiq)](https://pypi.org/project/dawiq/)\n[![Build Status](https://github.com/JSS95/dawiq/actions/workflows/ci.yml/badge.svg)](https://github.com/JSS95/dawiq/actions/workflows/ci.yml)\n[![Documentation Status](https://readthedocs.org/projects/dawiq/badge/?version=latest)](https://dawiq.readthedocs.io/en/latest/?badge=latest)\n[![License](https://img.shields.io/github/license/JSS95/dawiq)](https://github.com/JSS95/dawiq/blob/master/LICENSE)\n\nDaWiQ is a Python package to generate Qt widget from dataclass.\n\nIt provides:\n- Dynamic construction of widget from dataclass\n- Customizing widget for user-defined type\n- Delegate and mapper for dataclass widget\n\nThe following Qt bindings are supported:\n- [PySide6](https://pypi.org/project/PySide6/)\n- [PySide2](https://pypi.org/project/PySide2/)\n- [PyQt6](https://pypi.org/project/PyQt6/)\n- [PyQt5](https://pypi.org/project/PyQt5/)\n\n# Usage\n\nHere is a simple dataclass:\n\n```python\nfrom dataclasses import dataclass\n\n@dataclass\nclass DataClass:\n    x: int\n    y: bool\n```\n\nDaWiQ can build a widget from this dataclass. For PySide6 example,\n\n```python\nfrom PySide6.QtWidgets import QApplication\nfrom dawiq import dataclass2Widget\nimport sys\n\napp = QApplication(sys.argv)\ndataWidget = dataclass2Widget(DataClass)\ndataWidget.show()\napp.exec()\napp.quit()\n```\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/JSS95/dawiq/raw/master/doc/source/_images/widget-example.jpg\"/\u003e\u003cbr\u003e\n\u003c/div\u003e\n\nThis widget can be mapped to item model for storing the data.\nMore examples are provided in the documentation.\n\n# Installation\n\nDaWiQ can be installed from `PyPI`.\n\n```\n$ pip install dawiq\n```\n\nTo install from GitHub source, clone the repository with `git` and install with `pip`.\n\n```\n$ git clone https://github.com/JSS95/dawiq.git\n$ cd dawiq\n$ pip install .\n```\n\nDaWiQ does not specify the Qt binding requirement, therefore you must manually install one.\n\n# Documentation\n\nDaWiQ is documented with [Sphinx](https://pypi.org/project/Sphinx/). Documentation can be found on Read the Docs:\n\n\u003e https://dawiq.readthedocs.io/\n\nIf you want to build the document yourself, get the source code and install with `[doc]` option.\nThen go to `doc` directory and build the document.\n\n```\n$ pip install .[doc]\n$ cd doc\n$ make html\n```\n\nDocument will be generated in `build/html` directory. Open `index.html` to see the central page.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjss95%2Fdawiq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjss95%2Fdawiq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjss95%2Fdawiq/lists"}