Automic VaultAutomic Vault

brew

cffi を Homebrew, apt でインストール

cffi のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

インストール

追加のインストールコマンド

macOS

Homebrew確認済み · 100%
brew install cffi

local Homebrew formula metadata

Linux

Debian apt確認済み · 92%
sudo apt install cl-cffi

Debian stable package indexes · cl-cffi · ソース: deb.debian.org

概要

パッケージ概要

C Foreign Function Interface for Python

コマンドとエイリアス

  • cffi-gen-src

履歴

プロジェクトの歴史と使われ方

CFFI is the C Foreign Function Interface for Python, used to call C libraries from Python with declarations that stay close to C header syntax. It occupies the practical middle ground between Python's ctypes, handwritten CPython extensions, and larger binding generators such as SWIG or Cython.

プロジェクトの歴史

The official documentation credits Armin Rigo and Maciej Fijalkowski and describes a design influenced by LuaJIT's FFI: users should mainly need to know C and Python, keep Python-related logic in Python, and choose between ABI-level and API-level access depending on portability and build needs.

PyPI lists the first cffi release, 0.1, on 2012-06-18. The 1.0.0 series in 2015 introduced the out-of-line generation model that became central to packaging CFFI-based wrappers with setuptools. Later releases continued to track newer CPython versions, PyPy use, wheels, platform support, and Python packaging changes.

採用の歴史

CFFI became especially important in PyPy culture because the official installation notes describe it as distributed with PyPy and as the recommended way to interface with C libraries there. On CPython, it is common in packages that need C library access without maintaining a large handwritten extension layer.

The package's official PyPI page shows sustained maintenance across many releases from 2012 through 2026, with current wheels for major CPython versions and platforms. Homebrew packages it because command-line and build workflows sometimes need the project tooling alongside Python package-manager installs.

使われ方

Typical usage starts with `from cffi import FFI`, a `cdef()` block copied or adapted from C declarations, and either `ffi.dlopen()` for ABI mode or `ffibuilder.set_source()` plus compilation for API mode. The official overview presents both in-line and out-of-line modes and recommends API mode when a C compiler is available.

CFFI is used to wrap existing shared libraries, compile small C wrapper modules, allocate C data from Python, pass buffers and structs, call function pointers, and expose Python functions to embedded interpreters.

パッケージ好きにとっての重要性

CFFI is package-nerd significant because it changed the shape of Python native-library packaging: projects can describe a C interface in Python and let the build backend generate extension glue, instead of carrying a large CPython C API surface.

It is also a useful marker for interpreter-portable native bindings. Package maintainers care about whether a project uses CFFI because it affects wheels, build dependencies, PyPy compatibility, libffi availability, and whether downstream systems need compiler toolchains.

タイムライン

  • 2012: PyPI lists cffi 0.1 as released on 2012-06-18.
  • 2015: cffi 1.0.0 introduced out-of-line module generation.
  • 2020: cffi 1.14.1 release notes say source hosting moved to Heptapod.
  • 2025: PyPI lists cffi 2.0.0 as released on 2025-09-08.
  • 2026: PyPI lists cffi 2.1.0 as released on 2026-07-06.

Related projects

  • CFFI is discussed by its docs alongside LuaJIT FFI, ctypes, Cython, SWIG, CPython native C extensions, PyPy, pycparser, and libffi.

セキュリティ状態

保護ツール対応はまだ見つかっていません

cffi に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、Nucleus パッケージメタデータはここに公開されています。

インストール挙動

  • formula メタデータに Homebrew post-install フックは記録されていません。
  • Homebrew bottle メタデータは 8 個のプラットフォームターゲットで利用できます。
  • 1 件の実行時依存関係とともにインストールされます。
  • ビルドメタデータには 2 件のビルド依存関係があります。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
cffi-gen-srccliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-07-10
マネージャ版2.1.0
マネージャ更新日2026-07-08
ローカルデータOK
上流not checked
検出された最新未検出

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

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:cffi
バージョン2.1.0
パッケージマネージャHomebrew
パッケージマネージャページhttps://formulae.brew.sh/formula/cffi
ホームページhttps://cffi.readthedocs.io/en/latest/
リポジトリhttps://github.com/python-cffi/cffi
上流ドキュメントhttps://cffi.readthedocs.io/en/stable
ライセンスMIT-0
ソースアーカイブhttps://files.pythonhosted.org/packages/57/5f/ff100cae70ebe9d8df1c01a00e510e45d9adb5c1fdda84791b199141de97/cffi-2.1.0.tar.gz
最終更新2026-07-08T03:18:52Z
Pulseupdated
依存関係pycparser
ビルド依存関係python@3.13, python@3.14
macOS 提供ライブラリlibffi
Bottle利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sequoia, sonoma, tahoe, x86_64_linux)
Homebrew post-install未定義
サービス宣言なし

レジストリ情報

ソースデータベース詳細

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namecffi
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

ソースデータベース一致

他のパッケージマネージャ記録

一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。

Debian apt95%

cl-cffi 1:0.24.1-3

Common Foreign Function Interface for Common Lisp

https://common-lisp.net/project/cffi/

sudo apt install cl-cffi
  • Section: lisp
  • Architecture: all
  • Source Package: cffi
  • 9 依存関係
  • 2 任意依存関係
  • normalized package name match
  • 一致条件: Cffi
Debian stable package indexes · deb.debian.org · Debian stable package indexes: cl-cffi from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt95%

cl-cffi 1:0.24.1-3

Common Foreign Function Interface for Common Lisp

https://common-lisp.net/project/cffi/

sudo apt install cl-cffi
  • Section: universe/devel
  • Architecture: all
  • Source Package: cffi
  • 9 依存関係
  • 2 任意依存関係
  • normalized package name match
  • 一致条件: Cffi
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: cl-cffi from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • Nucleus package database
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment