# shiboken example
Example creating a Python binding for Qt6 & C++ with
[shiboken](https://doc.qt.io/qtforpython-6/shiboken6/index.html). Based on the
[shiboken examples](https://doc.qt.io/qtforpython-6/shiboken6/examples/index.html).
## Usage
Add the bindings to another project using `uv`:
```bash
$ uv add borco-shiboken-example
$ uv sync
...
+ borco-shiboken-example==0.0.4
+ shiboken6==6.8.1
...
```
Test the bindings were added and are usable (after activating the virtual environment created by `uv sync`):
```python
$ python
>>> import borco_shiboken_example as x
>>> dog = x.Dog()
>>> dog.name = "Max"
>>> dog.bark()
Max: woof!
>>>
```
Raw data
{
"_id": null,
"home_page": null,
"name": "borco-shiboken-example",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.12",
"maintainer_email": null,
"keywords": "c++, cmake, cpp, cxx, example, pyside6, python, scikit-build-core, shiboken, shiboken6",
"author": null,
"author_email": "Ioan C\u0103lin <iborco@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/a0/74/d4f6f305171a1a2a036e37bad51998b2be13bb9a1c0b2acde88c1c025d00/borco_shiboken_example-0.0.7.tar.gz",
"platform": null,
"description": "# shiboken example\n\nExample creating a Python binding for Qt6 & C++ with\n[shiboken](https://doc.qt.io/qtforpython-6/shiboken6/index.html). Based on the\n[shiboken examples](https://doc.qt.io/qtforpython-6/shiboken6/examples/index.html).\n\n## Usage\n\nAdd the bindings to another project using `uv`:\n\n```bash\n$ uv add borco-shiboken-example\n$ uv sync\n...\n+ borco-shiboken-example==0.0.4\n+ shiboken6==6.8.1\n...\n```\n\nTest the bindings were added and are usable (after activating the virtual environment created by `uv sync`):\n\n```python\n$ python\n>>> import borco_shiboken_example as x\n>>> dog = x.Dog()\n>>> dog.name = \"Max\"\n>>> dog.bark()\nMax: woof!\n>>>\n```\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "Example creating a Python binding for Qt6 and C++ with shiboken",
"version": "0.0.7",
"project_urls": {
"Homepage": "https://iborco-pyside.gitlab.io/demos/borco-shiboken-example/#/",
"Issues": "https://gitlab.com/iborco-pyside/demos/borco-shiboken-example/-/issues",
"Repository": "https://gitlab.com/iborco-pyside/demos/borco-shiboken-example"
},
"split_keywords": [
"c++",
" cmake",
" cpp",
" cxx",
" example",
" pyside6",
" python",
" scikit-build-core",
" shiboken",
" shiboken6"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "170c25ffe55db1a745f175f436216260f4a34e50dabac82cc38ef2336c5300d6",
"md5": "4a204818c4fc9825adefeb53674ed344",
"sha256": "3f72bb5025a201383f05bf46fabfbdcdc6f29bfdd4d7fbf0fd51406c9356fc85"
},
"downloads": -1,
"filename": "borco_shiboken_example-0.0.7-cp312-cp312-win_amd64.whl",
"has_sig": false,
"md5_digest": "4a204818c4fc9825adefeb53674ed344",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.12",
"size": 36770,
"upload_time": "2024-12-20T15:07:48",
"upload_time_iso_8601": "2024-12-20T15:07:48.106774Z",
"url": "https://files.pythonhosted.org/packages/17/0c/25ffe55db1a745f175f436216260f4a34e50dabac82cc38ef2336c5300d6/borco_shiboken_example-0.0.7-cp312-cp312-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "a074d4f6f305171a1a2a036e37bad51998b2be13bb9a1c0b2acde88c1c025d00",
"md5": "f87d229fd8a57eaab02214b5dc01e4ce",
"sha256": "74d1b75195a67774b25812b3f6be171cd221d84c770e5439e8d24d0a0a57a2ae"
},
"downloads": -1,
"filename": "borco_shiboken_example-0.0.7.tar.gz",
"has_sig": false,
"md5_digest": "f87d229fd8a57eaab02214b5dc01e4ce",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.12",
"size": 26679,
"upload_time": "2024-12-20T15:07:50",
"upload_time_iso_8601": "2024-12-20T15:07:50.710058Z",
"url": "https://files.pythonhosted.org/packages/a0/74/d4f6f305171a1a2a036e37bad51998b2be13bb9a1c0b2acde88c1c025d00/borco_shiboken_example-0.0.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-20 15:07:50",
"github": false,
"gitlab": true,
"bitbucket": false,
"codeberg": false,
"gitlab_user": "iborco-pyside",
"gitlab_project": "demos",
"lcname": "borco-shiboken-example"
}