# CppPy **Repository Path**: caixiongsoft/cpppy ## Basic Information - **Project Name**: CppPy - **Description**: C++调用Python的轻量级框架 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2021-06-11 - **Last Updated**: 2021-06-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # CppPy A light Library for C++ invoking python, written in C++11. # Requirements - Linux/MacOS - Python2.7 installed - Clang(or others which support C++11 well) - CMake # How to build ```bash git clone https://git.oschina.net/Cpointer/cpppy.git vim CMakeLists.txt # do some config for CMake ··· mkdir build cd build cmake .. make ``` **Attention:** In CMakeLists.txt,you must config path for Python's Headers files and Lib,according real runtime environment of your PC. # Document **两个部分:** 1. /doc目录下的文档,由作者撰写,一般是软件设计思想等关键部分 2. 可以使用doxygen生成源代码的文档,方便查看各个类之间的继承关系,查找函数等。协助程序员阅读代码。 ```bash vim Doxyfile # do some modify to the file ··· # run doxygen doxygen Doxyfile ``` **Attention:**你需要修改选项"OUTPUT_DIRECTORY"、"INPUT" 的值,使其分别指向生成的HTML存放目录,以及源码所在的目录(git clone后的那个文件夹绝对路径)。 Ps:在运行doxygen之前,请确保已经安装好。 # Reference - [Python Offical](https://docs.python.org/3/extending/embedding.html#embedding-python-in-c) - [CPP Offical](http://www.cplusplus.com/reference/)