Friday, March 23, 2012

Python-C-Extension

Skeletal code to create exposed C, C++ Extensions for Python

Just wrote some generic handy code which I thought I'd upload. Performance boost of using C, C++ extensions in some operations is quite significant and proven. Use this code to add pre-written C, C++ code and build it in a way that it's functions are exposed as python packages.

The code has been hosted on github HERE.

Build to a shared object to access the c library as a python package.

usage:

> import helloworld

>helloworld.printhelloworld()


Θ Ω Sushant ♂

No comments:

Post a Comment

Startup founders cheatsheet (Chief product officer)

Define your goals  The basic definition of "mission" and "vision" of the company is critical when we've past the...