Using CFFI for embedding¶ You can use CFFI to generate C code which exports the API of your choice to any C application that wants to link with this C code. This API, which you define yourself, ends up as the API of a .so/.dll/.dylib library—or you can statically link it within a larger application. Possible use cases: Exposing a library written in Python directly to C/C++ programs. Using Python t