How to bring your C++ project to Python land
summary
Shows how a C++ codebase becomes a Python extension by comparing approaches and real numbers: hand‑written CPython wrappers, SWIG (generated wrappers balloon to 3490 lines), Boost.Python, and modern tools like pybind11 and the Clang‑driven generator used to produce Shiboken XML type descriptions. Covers ownership and API adjustments, outputs CPython modules, and demos a reimplemented glob: Python glob ~12 s, pathlib ~7–8 s, the C++ accelerated version under <1s, confirming the approach works.
AI-written summary · about
chapters (16)
- 0:00Introduction
- 6:28How to create a Python model
- 9:25What about Python
- 12:10What is the magic
- 14:04Audio Documentation
- 16:55C Types
- 17:24Sip
- 17:54See
- 18:27Use case
- 18:37glob
- 19:06directory
- 19:28path
- 19:58data directory
- 21:14recursive
- 22:28summary
- 22:58questions
related talks
29mC++ ♥ Python: from modules to hybrid applications
36mIntroduction to C++ python extensions and embedding Python in C++ Apps
29mThe Art of Extending Python with other languages
01h 02mWriting Python Bindings for C++ Libraries: Easy-to-use Performance
01h 01mExtend and Embed Python with C++
29mGenerating Python bindings to C++ libraries
25m"Boosting Python Numeric Computations with Dynamic C++ Integration"
49mHow to build Python-C++ libraries
