Description
C libraries can be called from legacy Python 2 code through a foreign-function interface. CFFI helps developers bind native APIs without writing as much extension boilerplate.
It can load shared libraries and call native code with the privileges of the process. Use only trusted libraries and validate pointer, buffer, and lifetime handling carefully.