https://github.com/python-cffi/cffi
A Foreign Function Interface package for calling C libraries from Python.
https://github.com/python-cffi/cffi
Last synced: about 2 months ago
JSON representation
A Foreign Function Interface package for calling C libraries from Python.
- Host: GitHub
- URL: https://github.com/python-cffi/cffi
- Owner: python-cffi
- License: other
- Created: 2023-09-25T18:11:06.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2026-02-09T01:06:27.000Z (2 months ago)
- Last Synced: 2026-02-15T05:42:59.748Z (about 2 months ago)
- Language: Python
- Homepage: https://cffi.readthedocs.io/en/latest/
- Size: 49.2 MB
- Stars: 239
- Watchers: 10
- Forks: 77
- Open Issues: 42
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Authors: AUTHORS
Awesome Lists containing this project
- stars - python-cffi/cffi - A Foreign Function Interface package for calling C libraries from Python. (Python)
README
[](https://github.com/python-cffi/cffi/actions/workflows/ci.yaml?query=branch%3Amain++)
[](https://pypi.org/project/cffi)
[][Documentation]
CFFI
====
Foreign Function Interface for Python calling C code.
Please see the [Documentation] or uncompiled in the `doc/` subdirectory.
Download
--------
[Download page](https://github.com/python-cffi/cffi/releases)
Source Code
-----------
Source code is publicly available on
[GitHub](https://github.com/python-cffi/cffi).
Contact
-------
[Mailing list](https://groups.google.com/forum/#!forum/python-cffi)
Testing/development tips
------------------------
After `git clone` or `wget && tar`, we will get a directory called `cffi` or `cffi-x.x.x`. We call it `repo-directory`. To run tests under CPython, run the following in the `repo-directory`:
pip install pytest
pip install -e . # editable install of CFFI for local development
pytest src/c/ testing/
[Documentation]: http://cffi.readthedocs.org/