cffi
brew install cffi
v2.0.0_1
MIT-0
C Foreign Function Interface library for Python, enabling Python code to call C functions and vice versa.
Why you might care
CFFI lets Python developers wrap C libraries without writing C extension code by hand. It's a build/runtime dependency for many Python packages that need C interoperability; unlike ctypes (stdlib), it supports complex C types and automatic memory management more robustly.
13.5k
30-day installs · #302
50.5k
90-day · #274
215.7k
365-day · #265
Runtime dependencies
Build dependencies
Links
- https://cffi.readthedocs.io/en/latest/
- Brew formula source: Formula/c/cffi.rb
Blurb generated by claude-haiku-4-5 on today.
Raw metadata
{
"aliases": [],
"alternatives": [
"ctypes",
"pybind11",
"SWIG"
],
"build_dependencies": [
"python@3.13",
"python@3.14"
],
"categories": [
"library",
"binding",
"python-library"
],
"caveats": null,
"conflicts_with": [],
"dependencies": [
"pycparser"
],
"deprecated": 0,
"deprecation_reason": null,
"desc": "C Foreign Function Interface for Python",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:36:16+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "cffi",
"github_default_branch": null,
"github_last_commit_at": null,
"github_readme_excerpt": null,
"github_repo": null,
"github_stars": null,
"github_topics": [],
"homepage": "https://cffi.readthedocs.io/en/latest/",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": "CFFI documentation \u2014 CFFI 2.0.1.dev0 documentation",
"installs_30d": 13459,
"installs_365d": 215651,
"installs_90d": 50465,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "MIT-0",
"llm_generated_at": "2026-06-20T23:44:00+00:00",
"llm_model": "claude-haiku-4-5",
"name": "cffi",
"oldnames": [],
"one_liner": "C Foreign Function Interface library for Python, enabling Python code to call C functions and vice versa.",
"optional_dependencies": [],
"rank_30d": 302,
"rank_365d": 265,
"rank_90d": 274,
"raw_hash": "ffc145deb80a35df",
"recommended_dependencies": [],
"revision": 1,
"ruby_source_path": "Formula/c/cffi.rb",
"tap": "homebrew/core",
"test_dependencies": [
"python@3.13",
"python@3.14"
],
"uses_from_macos": [
"libffi"
],
"version_head": null,
"version_stable": "2.0.0",
"versioned_formulae": [],
"why_use_this": "CFFI lets Python developers wrap C libraries without writing C extension code by hand. It\u0027s a build/runtime dependency for many Python packages that need C interoperability; unlike ctypes (stdlib), it supports complex C types and automatic memory management more robustly."
}