Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Call a C API from Python Becomes More Enjoyable with CFFI

EuroPython Conference via YouTube

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

Reviews

Start your review of Call a C API from Python Becomes More Enjoyable with CFFI

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.