Py11
v0.2
This is a minimalist Python wrapper for C++11.
|
Py11 is a minimalist Python wrapper for C++11, and makes it easier to call Python libraries from C++11.
The git repository is at https://github.com/LenxWei/py11.
Py11 is a pure header library. To install it, just copy the directory include/py11 to system include directory.
Need a compiler supporting C++11, such as gcc 4.7, clang 3.2 or higher.
Make sure to include correct Python header files and link correct Python libraries. For example:
export CFLAGS="-I/usr/include/python2.7 -std=c++11" export LDFLAGS=-lpython2.7
You can find documents about wrapper classes here, and Python utils here.
Here is the py11 implementation of the original call example.
add tutorial
add exception handling