Engineer in Tokyo

python-openvcdiff and Cython

I started a project today to implement an interface for the open-vcdiff using Cython. I’m not a C++ master and the Python C libraries are pretty new to me but I managed to expose and implement a few methods of the VCDiffEncoder class. The hardest part so far has been trying to figure out how to use the C++ standard library types like std::string. I’m also not sure how I can interface with python in such a way as to allow fast processing of potentially large binary data. Normally I would use a file-like object in Python to create a kind of string but open-vcdiff being C++ has a slightly different interface for dealing with binary blobs.

The code is over at bitbucket in my python-openvcdiff repository.