cffi
« Back to VersTracker
Description:
C Foreign Function Interface for Python
Type: Formula  |  Latest Version: 2.0.0@1  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: python c-bindings ffi development libraries
Install: brew install cffi
About:
C Foreign Function Interface for Python. CFFI provides a simple and powerful mechanism for interfacing Python code with C libraries. It allows you to call C functions directly from Python and access C data structures, enabling high-performance integration with existing C codebases.
Key Features:
  • ABI-level and API-level interfacing
  • Supports C99 and C11 standards
  • No need for wrapper code generation
  • Works with both CPython and PyPy
Use Cases:
  • Wrapping existing C libraries for Python use
  • Improving performance by calling C functions from Python
  • Accessing low-level system interfaces
Alternatives:
  • ctypes – ctypes is part of Python's standard library, while CFFI offers better PyPy support and a more Pythonic API
  • Cython – Cython compiles Python-like code to C extensions, while CFFI focuses on interfacing with existing C libraries
License: MIT
Dependencies: pycparser
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, tahoe, sequoia, sonoma, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit
Sep 9, 2025 4:28am 0 VERSION_BUMP a9f93a56