Comparison
Cython vs nanobind vs shiboken2 vs shiboken6
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
The Cython compiler for writing C extensions in the Python language.
Actively maintained. Last release 8 days ago, commits in 26 of the last 26 weeks. A safe choice.
$
pip install cythonnanobind: tiny and efficient C++/Python bindings
Actively maintained. Last release 3 months ago, commits in 19 of the last 26 weeks. A safe choice.
$
pip install nanobindPython / C++ bindings helper module
Likely abandoned. No release or commit for years (last release over 4 years ago).
$
pip install shiboken2Python/C++ bindings helper module
Actively maintained. Last release 2 days ago. A safe choice.
$
pip install shiboken6In short
- shiboken2 looks abandoned: avoid it for new projects.
- Cython is the most used: 97.5M downloads a month, 18× more than shiboken6.
- Maintenance is comparable: Cython 87, nanobind 84, shiboken6 84 on Pythie’s Index.
- Cython is growing fastest: downloads +10% over the last month.
- Safe default for a new project: Cython.