Overview
Explore CFFI as an alternative to the standard C API for extending Python in this 30-minute EuroPython Conference talk. Learn how to call C libraries directly from Python using CFFI, which works on both CPython and PyPy. Discover the advantages of CFFI over traditional C extension modules, including its simplicity and independence from CPython internals. Examine the motivation behind CFFI's development and its success in high-profile projects. Understand how CFFI addresses challenges faced by PyPy regarding the CPython C API. Through demonstrations and examples, gain insights into CFFI objects, support, and its implementation differences in CPython and PyPy. Conclude with a Q&A session to deepen your understanding of this powerful tool for integrating C code with Python.
Syllabus
Introduction
Demo
CFFI objects
CFFI support
PiPI
PiPI differences
Questions
Taught by
EuroPython Conference