Skip to content

RodkinIvan/PyC

Repository files navigation

PyC

Setup

In the root of the repository:

sudo ./setup.h

Creating a module

Anywhere:

create_pyc_module <module_name>
$EDITOR <module_name>/<module_name>_src.cpp

Then, import your c++ functions or classes and wrap them according to boost::python API or a small the most necessary part in syntax_guide.

Then, compile it, using:

compile_pyc_module <module_name>

This command will create the <module_name>.so file, which acts like real python module

Usage

In the same folder with <module_name>.so:

import <module_name>

or

from <module_name> import <something_from_the_module> 

or anyway you want.

Uninstallation

sudo ./uninstall.sh

About

Minimalistic script. Boost::python wrapper. Allows to create python modules on c++.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors