# CFFI

> The C Foreign Function Interface for Python

Source: https://talira.ai/catalog/cffi-z6azxeqv
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / system bindings](https://talira.ai/categories/libraries/system-bindings), [languages / python](https://talira.ai/categories/languages/python)
- Licence: MIT-0[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [python-cffi](https://talira.ai/orgs/python-cffi.md)

CFFI (C Foreign Function Interface) lets Python call almost any C code from C-like declarations you can often copy from header files or documentation. It works in ABI mode (loading a shared library at run time) or API mode (compiling a C extension), supports callbacks with extern "Python", structures, pointers, arrays and variadic calls, and can embed Python in C programs. It runs on CPython and PyPy. It was created by Armin Rigo and Maciej Fijalkowski.

## Links

- Website: https://cffi.readthedocs.io/en/latest/
- GitHub: https://github.com/python-cffi/cffi
- Docs: https://cffi.readthedocs.io/en/latest/

## Problems it solves

- call a C library from Python without writing a C extension by hand
- wrap a C shared library for Python
- use the same C bindings on CPython and PyPy

## Features

- call C code from Python using C declarations
- ABI and API modes
- callbacks, structures, pointers and variadic calls
- embed Python in C programs
- CPython and PyPy

## Trust

Overall: 0.55 out of 1.
Signals: maintenance 0.83, adoption 0.49, momentum 0.28, community 0.82, backing 0.30, extensibility 0.00.

- last commit 11 days ago
- 35 commits in the last 90 days
- latest release v2.1.1 3 months ago
- 295 GitHub stars
- 109 contributors
- backed by python-cffi

## Sources

[^1]: https://github.com/python-cffi/cffi/blob/main/LICENSE (checked 29 Nov 2026)
