Skip to main content

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

shiboken6_generator-6.8.0.2-cp39-abi3-win_amd64.whl (24.6 MB view details)

Uploaded CPython 3.9+ Windows x86-64

shiboken6_generator-6.8.0.2-cp39-abi3-manylinux_2_31_aarch64.whl (48.8 MB view details)

Uploaded CPython 3.9+ manylinux: glibc 2.31+ ARM64

shiboken6_generator-6.8.0.2-cp39-abi3-manylinux_2_28_x86_64.whl (52.7 MB view details)

Uploaded CPython 3.9+ manylinux: glibc 2.28+ x86-64

shiboken6_generator-6.8.0.2-cp39-abi3-macosx_12_0_universal2.whl (108.1 MB view details)

Uploaded CPython 3.9+ macOS 12.0+ universal2 (ARM64, x86-64)

File details

Details for the file shiboken6_generator-6.8.0.2-cp39-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for shiboken6_generator-6.8.0.2-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 5445f026e946dd253c5921103cd24f7388663cab743746b159b90f1deccaaff3
MD5 f9cb124e85a8dca65100e57c410f3a79
BLAKE2b-256 1de3a8d9527d7746d821fb63d780c0855ce5ef2d749c783d11ffeec45d48ab74

See more details on using hashes here.

File details

Details for the file shiboken6_generator-6.8.0.2-cp39-abi3-manylinux_2_31_aarch64.whl.

File metadata

File hashes

Hashes for shiboken6_generator-6.8.0.2-cp39-abi3-manylinux_2_31_aarch64.whl
Algorithm Hash digest
SHA256 8d4a0349f4721c29058377c31d74081ed9e58b6b6321ead8ad3abe6b9c1b158f
MD5 d457ef1751724ba4670e9db356665761
BLAKE2b-256 9a3ba829f06a4a13c0062eed1349e6beaa5517bbd04afac8472cb4b6b8f51a94

See more details on using hashes here.

File details

Details for the file shiboken6_generator-6.8.0.2-cp39-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for shiboken6_generator-6.8.0.2-cp39-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 577e45eee2ebb04887d2ab8d7eb3bf4558e4970884721248112904ba8df4c09a
MD5 68de252e7aba8d1222ac3a48f89e54fb
BLAKE2b-256 87da1f714b5827c214b12adfefd0b80a0000add3dd0844ce8d71ab1ccf63ae45

See more details on using hashes here.

File details

Details for the file shiboken6_generator-6.8.0.2-cp39-abi3-macosx_12_0_universal2.whl.

File metadata

File hashes

Hashes for shiboken6_generator-6.8.0.2-cp39-abi3-macosx_12_0_universal2.whl
Algorithm Hash digest
SHA256 3aed68665fedacf2043c77001912ed0cd954c936ca434292102bea711e926a43
MD5 8a9eb13e08d366b00506bc5150de326b
BLAKE2b-256 acf0eb1f0b7a70aa3b14b85b2ba067090f27f2b0fb78f77f12f586a9c91eb25b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page