Contribute Media
A thank you to everyone who makes this possible: Read More

An introduction to interfacing with C using CFFI

Description

Python CFFI (C Foreign Function Interface) provides a powerful set of tools for interacting with C from Python.

In this tutorial, I will cover the basics of using CFFI, including the various modes it can be used in. I will also cover several of the more advanced aspects, such as callbacks, and describe the mechanisms for distributing modules that use Python CFFI.

Details

Improve this page