skillfed

shiboken2

Python / C++ bindings helper module

shiboken2 v5.15.2.1 125.7K downloads/30d#11,804 on PyPI
Copyleft license LGPL Abandoned released

What it is and what it does

Shiboken2 is a utility module for inspecting and debugging Python bindings generated from C++ code, primarily used within the Qt for Python ecosystem. It exposes functions to check whether a Python wrapper object is still valid—that is, whether the underlying C++ object it wraps has been destroyed—and provides other binding-related metadata useful for integration work and debugging.

The package has no runtime dependencies and ships as platform-specific wheels for Windows, macOS, and Linux. However, it is abandoned: the last release was 1673 days ago, and no active maintenance or security updates are planned. It is designed to be used alongside C++/Python binding frameworks, not as a standalone tool.

Use it for:

  • Debug applications to detect when Python wrappers reference destroyed C++ objects
  • Validate binding integrity during C++/Python integration testing
  • Inspect binding metadata to understand wrapper lifecycle in mixed-language codebases
  • Troubleshoot segmentation faults caused by invalid wrapper access after C++ cleanup

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Shiboken2 provides Python access to metadata and utilities for C++/Python bindings, letting you inspect binding validity and debug wrapper state after C++ object destruction.

No. Shiboken2 is abandoned (last release 1673 days ago) with no active maintenance or security updates. If you are actively using a binding framework that depends on it, verify whether your version still bundles shiboken2; if you need binding introspection for new projects, evaluate whether your binding framework itself is still maintained first.

Install

shiboken2 on PyPI

pip

pip install shiboken2

uv

uv add shiboken2

poetry

poetry add shiboken2

Installing shiboken2

Before you install

Medium install friction due to platform-specific wheels across Windows, macOS, and Linux variants. Package is abandoned—last release was 1673 days ago—so no active maintenance or security updates are forthcoming.

License in practice

Dual-licensed under LGPL (copyleft) and proprietary terms. LGPL copyleft obligations apply to derivative works; proprietary license terms may offer alternatives under separate agreement.

Quickstart

import shiboken2

# Check if a Python object wraps a valid C++ instance
is_valid = shiboken2.isValid(some_cpp_wrapped_object)
print(is_valid)

Requires a pre-existing C++-wrapped Python object (typically from PySide2 or similar binding); shiboken2 alone does not create bindings.

Verify before relying

  • Whether shiboken2 5.15.2.1 remains compatible with Python versions beyond the <3.11 cap
  • Current state of Qt for Python maintenance and whether shiboken2 is still usable with active versions
  • Whether the dual LGPL/proprietary license terms are clearly documented in the package or require external reference

Package facts

License LGPL (copyleft)
Python support capped below the current Python release (>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <3.11)
Install friction medium — platform-specific wheel
Runtime dependencies none
Maintenance abandoned — 1,673 days since the last release
First released
Downloads 125,730/month — #11,804 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: shiboken2-5.15.2.1-5.15.2-cp27-cp27m-macosx_10_13_intel.whl; shiboken2-5.15.2.1-5.15.2-cp27-cp27mu-manylinux1_x86_64.whl; shiboken2-5.15.2.1-5.15.2-cp35.cp36.cp37.cp38.cp39.cp310-abi3-macosx_10_13_intel.whl; shiboken2-5.15.2.1-5.15.2-cp35.cp36.cp37.cp38.cp39.cp310-abi3-manylinux1_x86_64.whl; shiboken2-5.15.2.1-5.15.2-cp35.cp36.cp37.cp38.cp39.cp310-none-win32.whl; shiboken2-5.15.2.1-5.15.2-cp35.cp36.cp37.cp38.cp39.cp310-none-win_amd64.whl

Keywords: Qt

Development Status :: 5 - Production/StableEnvironment :: ConsoleEnvironment :: MacOS XEnvironment :: Win32 (MS Windows)Environment :: X11 Applications :: QtIntended Audience :: DevelopersLicense :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)License :: Other/Proprietary LicenseOperating System :: MacOS :: MacOS XOperating System :: MicrosoftOperating System :: Microsoft :: WindowsOperating System :: POSIXOperating System :: POSIX :: LinuxProgramming Language :: C++Programming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: DatabaseTopic :: Software DevelopmentTopic :: Software Development :: Code GeneratorsTopic :: Software Development :: Libraries :: Application FrameworksTopic :: Software Development :: User InterfacesTopic :: Software Development :: Widget Sets

Tags

c++ python bindings introspectionshiboken binding metadatapython wrapper validationqt for python bindingsc++ object lifecycle debuggingbinding generation utilitiespyside binding tools
qt-bindingsc++-integrationabandoned

More Software Development packages