CFFI — C Foreign Function Interface for Python
JSON →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.
Traffic · last 30 days ↑80% vs prev 7d
total hits 25
actors 7 distinct systems
last hit 1d ago GPTBot
top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France
Resources
packagepypi.org/project/cffi/ ↗
API endpoints
full doc /v1/registry/cffi
install /v1/registry/cffi/install
compatibility /v1/registry/cffi/compatibility