Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore how to effectively call C APIs from Python using CFFI in this 31-minute EuroPython Conference talk. Learn about the two modes of CFFI utilization: API level and ABI level. Discover the speaker's experience wrapping the shaderc library with pyshaderc. Compare two Python modules for wrapping the Vulkan API: CVulkan, a classic C extension, and vulkan, its CFFI counterpart. Gain insights into the advantages of using CFFI for Python extensions, addressing common assumptions about Python's speed and hardware access limitations. Dive into topics such as memory management, performance enhancement, and the intricacies of working with complex APIs like Vulkan.
Syllabus
Intro
CALL A CAPI FROM PYTHON BECOMES MORE ENJOYABLE WITH
WHY PYTHON EXTENSION ?
CYTHON
CTYPES
ABI / IN-LINE
API / OUT-OF-LINE
STATISTICS
JINJA2 TEMPLATE C EXTENSION
OBJECTS
FAST API MODE
USE
SPECIAL GUEST
Taught by
EuroPython Conference