~/talk

Generating Python bindings to C++ libraries

Talkat PyCon AU 2023 · 2023-08-18..08-22· [python, rust]
name:David Vo
links:none on file
slides:none on file

Generates Python bindings by auto‑producing pybind11 code from C++ headers using a Python C++ parser, YAML + Jinja2 templates and a bespoke robotpy-build system that packages shared libraries and loads them with ctypes. Handles cross‑module classes, uses pybind11 keep_alive for lifetimes and injects a custom __repr__. CI builds wheels for three OSes and supported CPython versions producing 15 wheels, accepts manual work for heavily templated code via manual template instantiations, and deliberately avoids binding system libraries.

AI-written summary · about

  1. 0:00Python C++ bindings intro
  2. 1:03Why generate Python bindings
  3. 3:54Existing binding tools
  4. 6:50pybind11 introduction
  5. 9:43Automating pybind11 code
  6. 15:38RobotPi build overview
  7. 21:39Customizing bindings
  8. 23:10Packaging libraries
  9. 26:22Questions and answers
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.