{"library":"cffi","type":"library","category":null,"description":"CFFI (C Foreign Function Interface) lets Python code call C libraries by declaring C-like function signatures and types that can often be copy-pasted directly from header files. It supports four modes: ABI/API level each with inline or out-of-line (pre-compiled) preparation. The current stable release is 2.0.0 (released September 2025), requiring Python >=3.9. It is the recommended way to interface with C on PyPy and is used as a foundation by cryptography, bcrypt, and many other major Python packages.","language":"python","status":"active","version":"2.0.0","tags":["ffi","c-bindings","ctypes-alternative","native","extension","pypy","systems"],"last_verified":"Tue Jun 09","install":[{"cmd":"pip install cffi","imports":["from cffi import FFI","from _my_compiled_module import ffi, lib"]}],"homepage":null,"github":"https://github.com/python-cffi/cffi","docs":"https://cffi.readthedocs.io/","changelog":"https://cffi.readthedocs.io/en/latest/whatsnew.html","pypi":"https://pypi.org/project/cffi/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":1.8,"avg_import_s":0.01,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/cffi/compatibility"}}