Comparison
Cython vs pybind11 vs pythran vs shiboken2
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 6 days ago, commits in 26 of the last 26 weeks. A safe choice.
pip install cythonSeamless operability between C++11 and Python
Actively maintained. Last release 4 months ago, commits in 26 of the last 26 weeks. A safe choice.
pip install pybind11Ahead of Time compiler for numeric kernels
Maintained. Last release 3 months ago, commits in 15 of the last 26 weeks. Weaker on release cadence and contributor spread.
pip install pythranPython / C++ bindings helper module
Likely abandoned. No release or commit for years (last release over 4 years ago).
pip install shiboken2In short
- shiboken2 looks abandoned: avoid it for new projects.
- Cython is the most used: 96.8M downloads a month, 5.0× more than pybind11.
- Maintenance is comparable: Cython 89, pybind11 82, pythran 67 on Pythie’s Index.
- pythran is growing fastest: downloads +14% over the last month.
- Safe default for a new project: Cython.