Skip to main content

Posts

Showing posts from 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 ♂