cffi

Install command:
brew install cffi

C Foreign Function Interface for Python

https://cffi.readthedocs.io/en/latest/

License: MIT-0

Development: Pull requests

Formula JSON API: /api/formula/cffi.json

Formula code: cffi.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 2.1.1

Revision: 1

Depends on:

pycparser 3.12 C parser in Python

Depends on when building from source:

python-setuptools 84.2.1 Easily download, build, install, upgrade, and uninstall Python packages
python@3.14 3.14.10 Interpreted, interactive, object-oriented programming language
python@3.15 3.15.2 Interpreted, interactive, object-oriented programming language

Uses from macOS: libffi

Binaries: cffi-gen-src

GitHub Packages downloads:

Last 30 days478,974
Downloads12,654,691
Analytics install events (30 days)34,004
Downloads / install events (30 days)14.1×

Source: GitHub Packages, fetched 2026-12-02T00:59:07Z. Analytics dates: 2026-11-02 to 2026-12-02. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.

Analytics:

30 days90 days365 days
Installs34,002102,184292,449
Installs (--HEAD)2933
Installs on Request1,4574,82017,091
Installs on Request (--HEAD)1526
Build Errors1,832