CFFI is an interface between Python and C - like ctypes, only better and easier to use. CFFI is largely written in pure Python, so it is possible to use CFFI with ctypes as a backend (which I've been doing for a while) but this is not officially supported. The native C backend is the officially supported way of using CFFI, and it provides some features that the ctypes backend doesn't have, such as caching parsed data type/variable/function definitions. And the native backend is probably faster than the ctypes backend.
https://cffi.readthedocs.io/
CFFI is an interface between Python and C - like
ctypes
, only better and easier to use. CFFI is largely written in pure Python, so it is possible to use CFFI withctypes
as a backend (which I've been doing for a while) but this is not officially supported. The native C backend is the officially supported way of using CFFI, and it provides some features that thectypes
backend doesn't have, such as caching parsed data type/variable/function definitions. And the native backend is probably faster than thectypes
backend.