Python/C++ bindings generator
Project description
Shiboken6-generator
Shiboken is the generator used by the Qt for Python project. It outputs C++ code for CPython extensions, which can be compiled and transformed into a Python module.
C++ projects based on Qt can be wrapped, but also projects which are not related to Qt.
How does it work?
Shiboken uses an API Extractor that does most of the job, but it requires a typesystem (XML file) to customize how the C++ classes/methods will be exposed to Python.
The typesystem allows you to remove arguments from signatures, modify return types, inject code and add conversion rules from the C++ data types to Python data types, manipulate the ownership of the objects, etc.
Examples
An example related to wrap a C++ library not depending on Qt can be found in our repository.
Additionally, you can find a couple of tests inside the git repository.
For a more advanced case regarding extending a Qt/C++ application with Python bindings based on the idea of the PySide module, you can check the scriptableapplication example in our repository.
Documentation
You can find more information about Shiboken in our official documentation page.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file shiboken6_generator-6.7.3-cp39-abi3-win_amd64.whl
.
File metadata
- Download URL: shiboken6_generator-6.7.3-cp39-abi3-win_amd64.whl
- Upload date:
- Size: 22.6 MB
- Tags: CPython 3.9+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3092cfe268486db2dcfa0c9a4985654e0f95850bfcc55a1d9c2a3c3ada02e592 |
|
MD5 | a1929bc003f00d2a43be124e1e6d4d46 |
|
BLAKE2b-256 | 5850365bcd2fea22fa0672af308ee18eaac162536474686e1427c21f2c172ac0 |
File details
Details for the file shiboken6_generator-6.7.3-cp39-abi3-manylinux_2_31_aarch64.whl
.
File metadata
- Download URL: shiboken6_generator-6.7.3-cp39-abi3-manylinux_2_31_aarch64.whl
- Upload date:
- Size: 48.6 MB
- Tags: CPython 3.9+, manylinux: glibc 2.31+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 821d74ec20a1bc5858035a5782cd4d7ed0513e46bd64db7284056fa73dd54ca9 |
|
MD5 | 081cf77c776d9c39df582729c803627d |
|
BLAKE2b-256 | abf392a0267c89f81afa99a1733850eea5c8a360cf50212df546619e8b35b79e |
File details
Details for the file shiboken6_generator-6.7.3-cp39-abi3-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: shiboken6_generator-6.7.3-cp39-abi3-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 42.1 MB
- Tags: CPython 3.9+, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c1d8138f901e0ca55916c963b7d6d77dd34d6e8c4c609b711c9ce1c40d5b33e |
|
MD5 | 5590476432dd84320578459dfe0da1b2 |
|
BLAKE2b-256 | 28cff233f49e00b95bb9f35fa9f7b1a8d86b182371009b73757c7d7dc82643d7 |
File details
Details for the file shiboken6_generator-6.7.3-cp39-abi3-macosx_11_0_universal2.whl
.
File metadata
- Download URL: shiboken6_generator-6.7.3-cp39-abi3-macosx_11_0_universal2.whl
- Upload date:
- Size: 107.6 MB
- Tags: CPython 3.9+, macOS 11.0+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae5cb9de27bd87f3ed3789dcbd21e0f40a2d35fe02025335f76e2e8bb2fafa48 |
|
MD5 | 3136eff626457e27faa71948ff8fe9b0 |
|
BLAKE2b-256 | b5f0fe57364cb681bd34dde96b7442471c6c57e8a9f4e3c5a5a2923aa8a3022c |