C++ in Python the Easy Way! #pybind11

C++ in Python the Easy Way! #pybind11

Jack of Some

3 года назад

102,972 Просмотров

You voted, so here it is. I tried to condense everything you might need to know to get going with writing Python interfaces to C++ code. The breakdown is

0:00 Intro
0:39 Absolute minimum example
2:28 Exploration of generated module
3:25 Classes
4:49 STL containers, Python types
6:20 Numpy support
7:24 Properties
8:00 The GIL

#python #cplusplus

All the code for this can be found here: https://gist.github.com/safijari/f7aec85b89906b4b90a8f33039c11263

The official CMake example: https://github.com/pybind/cmake_example

Definitely check out my sponsor at https://www.hbtapp.com

Join the subreddit at reddit.com/r/JackOfSome

Тэги:

#python_and_c++ #pybind11 #fast_python #python_wrapper #boost_python #cpp_python #python.h
Ссылки и html тэги не поддерживаются


Комментарии: