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@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 days583,307
Downloads12,333,015
Analytics install events (30 days)45,813
Downloads / install events (30 days)12.7×

Source: GitHub Packages, fetched 2026-11-12T00:51:28Z. Analytics dates: 2026-10-13 to 2026-11-12. 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
Installs45,806107,387281,284
Installs (--HEAD)71334
Installs on Request2,5054,94317,542
Installs on Request (--HEAD)3827
Build Errors1,413