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-cp39-abi3-win_amd64.whl (24.6 MB view details)

Uploaded CPython 3.9+ Windows x86-64

shiboken6_generator-6.8.0-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-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-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-cp39-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for shiboken6_generator-6.8.0-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 3ae8cbef3cf2b02d68b2eca22b8383ed1240c74bcbc0f30119713540e6c329ae
MD5 2d8af48893d39eb61e24b9793450a58e
BLAKE2b-256 478e6b4bb380410a3af4fe6cd493ea7886a43a41f690bf9a32b65b2f0af047c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for shiboken6_generator-6.8.0-cp39-abi3-manylinux_2_31_aarch64.whl
Algorithm Hash digest
SHA256 7972009d9c7053553e3445e1cf87cca66646965ce227f25ed79d561c3141dced
MD5 057ae9aabe07a3737658f9b700003776
BLAKE2b-256 98dd53431b7a52927fa766e7e34bee024995b43c17bdf25f486ee9fd3ca170ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for shiboken6_generator-6.8.0-cp39-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6825eed0eac8e0a86ea23edb5f4c066450f5b50112e5be4d3ec59c690b261dfc
MD5 30a1b2ccaebb8c8fd1f1cbcc497ebd49
BLAKE2b-256 7d911d535181e9bd1973812804e8a2aefe5afc63b66e3ef78b4b10d041e829c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for shiboken6_generator-6.8.0-cp39-abi3-macosx_12_0_universal2.whl
Algorithm Hash digest
SHA256 ff3c8aa3ac952a8c7342b56c160c61b4bcc5e95680b3795109abd2d131e0d2c6
MD5 3a4ca636c7be780a56d6f68ee417d46a
BLAKE2b-256 e7f6b3e0269aee0e27ee0407bbe0d63af15b0e24199fa367d4bd2a2c87d2994b

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