Cffi
Cffi is a technology to write python bindings to c code with minimal boilerplate. I used it to write bindings to different libraries, and here I am sharing my experience with you so you don't have to make the same mistakes I made!
Posts tagged Cffi
Build CFFI wheels with Hatch
In my previous post( I suggested that you should use setuptools if you wanted to build and publish cffi extensions. At first I followed my own suggestion, but later I decided I wanted to try something differen. To achieve this I decided to use a relatively new python package manager, Hatch
Some python cffi tips
Most python cffi tutorials out there are very supeficial, they explain only the basics using a toy library. However the real world is much different. Here are my tips on how to write cffi bindings for real world libraries.