1
0
Fork 0
mirror of https://github.com/python-cffi/cffi.git synced 2026-12-03 13:34:26 +00:00
A Foreign Function Interface package for calling C libraries from Python. https://cffi.readthedocs.io/en/latest/
  • Python 65.3%
  • C 34.2%
  • Assembly 0.2%
  • Batchfile 0.2%
  • Meson 0.1%
Find a file
Matti Picus 465c21501c
remove _imp_emulation (#296)
* remove _imp_emulation

* retrigger CI
2026-12-03 08:29:29 +02:00
.github Update GitHub runners: ubuntu 24.04 → 26.04 (#260) 2026-11-18 17:58:32 +02:00
demo Apply ruff/pyupgrade rules UP031 and UP032 (#261) 2026-10-27 17:39:17 +02:00
doc Avoid removed Py_FileSystemDefaultEncoding in load_library (#287) 2026-10-24 18:17:23 +03:00
src remove _imp_emulation (#296) 2026-12-03 08:29:29 +02:00
testing remove _imp_emulation (#296) 2026-12-03 08:29:29 +02:00
tools Misc pre-2.1 release/packaging cleanup (#253) 2026-07-06 13:44:41 -07:00
.gitignore prepare for 1.16.0rc1 2023-09-25 10:09:20 -07:00
.readthedocs.yaml Update GitHub runners: ubuntu 24.04 → 26.04 (#260) 2026-11-18 17:58:32 +02:00
AUTHORS Add my employer in AUTHORS 2016-04-23 22:10:16 +02:00
LICENSE Change the license from MIT to MIT-no-attribution, which is the same without the line that says "The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software." 2025-06-25 08:44:53 +03:00
MANIFEST.in Misc pre-2.1 release/packaging cleanup (#253) 2026-07-06 13:44:41 -07:00
pyproject.toml Fix PyPy dependency marker 2026-10-06 07:54:37 +03:00
README.md Fix documentation grammar, typos, and clarity issues (#228) 2026-02-09 03:06:27 +02:00
setup.py make setup.py capable of detecting cross-compiling on windows when targeting arm64 (#101) 2026-12-01 20:01:25 +02:00
setup_base.py test for pushing to heptapod 2020-11-28 15:29:35 +01:00
suppressions_free_threading.txt Add suppression for race seen in CI (#244) 2026-04-21 21:32:49 +03:00

GitHub Actions Status PyPI version Read the Docs

CFFI

Foreign Function Interface for Python calling C code.

Please see the Documentation or uncompiled in the doc/ subdirectory.

Download

Download page

Source Code

Source code is publicly available on GitHub.

Contact

Mailing list

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/