Skip to content

Examples demonstrating bidirectional interaction between Python and C++ code.

Notifications You must be signed in to change notification settings

jayyoung0802/PyCppBridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PyCppBridge

Examples show bidirectional interaction between Python and C++.

cython

cd cython/
bash compile.sh
python demo.py

pybind

cd pybind/
git clone https://github.com/pybind/pybind11.git
bash compile.sh
python main.py

Another Compile Method: (Reference: https://www.jianshu.com/p/0b4b49dd706a)

cd pybind/
git clone https://github.com/pybind/pybind11.git
cd another_compile/
c++ -O3 -Wall -shared -std=c++11 -fPIC $(python3 -m pybind11 --includes) example.cpp -o example$(python3-config --extension-suffix)
python run_example.py

About

Examples demonstrating bidirectional interaction between Python and C++ code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published