1
0
Fork 0
mirror of https://github.com/python-cffi/cffi.git synced 2026-09-19 21:29:23 +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
Julien Stephan a8520676f8 ci: add riscv64 manylinux wheels
Now that cibuildwheel and PyPI support riscv64, we can start building riscv64 wheels.

Integrated in the same way as the s390x platform.

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
2026-09-09 08:12:39 +03:00
.github ci: add riscv64 manylinux wheels 2026-09-09 08:12:39 +03:00
demo Apply ruff/Pylint rule PLR1714 2026-03-25 12:42:16 +02:00
doc Fix Generated C depends on the host interpreter 2026-09-02 18:42:08 +03:00
src Move initialization 2026-09-04 21:23:46 +03:00
testing Make test follow idioms in the file 2026-09-02 18:42:08 +03: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 Misc pre-2.1 release/packaging cleanup (#253) 2026-07-06 13:44:41 -07: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 bump main branch to 2.2.0.dev0 (#254) 2026-07-06 14:39:40 -07:00
README.md Fix documentation grammar, typos, and clarity issues (#228) 2026-02-09 03:06:27 +02:00
setup.py setup.py: fix cross-compilation on macOS hosts (#247) 2026-06-09 07:33:34 +03: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/