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.7.0-cp39-abi3-win_amd64.whl (22.9 MB view hashes)

Uploaded CPython 3.9+ Windows x86-64

shiboken6_generator-6.7.0-cp39-abi3-manylinux_2_31_aarch64.whl (27.8 MB view hashes)

Uploaded CPython 3.9+ manylinux: glibc 2.31+ ARM64

shiboken6_generator-6.7.0-cp39-abi3-manylinux_2_28_x86_64.whl (42.3 MB view hashes)

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

shiboken6_generator-6.7.0-cp39-abi3-macosx_11_0_universal2.whl (52.7 MB view hashes)

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

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