YoVDO

Building a Binary Extension

Offered By: PyCon US via YouTube

Tags

PyCon US Courses Python Courses C++ Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the process of building binary extensions for Python in this 40-minute PyCon US talk. Learn how to leverage the power of compiled code to enhance your Python libraries' performance and functionality. Discover modern tools and best practices for creating seamless binary extensions across various platforms. Dive into topics such as using pybind11 for C++ bindings, scikit-build for powerful CMake-based builds, and cibuildwheel for producing binaries on multiple platforms. Gain insights on automating tasks, ensuring reproducible builds, and overcoming common misconceptions about binary extensions. By the end of this talk, feel confident in incorporating compiled code into your Python projects to accelerate and advance your libraries' capabilities.

Syllabus

Intro
Is Python fast?
Python has great performance
dump Python
Numba
Make Python Faster
Pre)compile
What is a binary extension?
Pure / Binary wheels
But why compile?
Disclamers
But it's hard?
Bindings / Coding
A fork in the road
Accessing shared libraries
Not just a JIT
Fast Python
Fast not quite-Python
Example of usage
Many great features
Nanobind
Example project
tests/test_works.py
Build systems
Pybind11 and setuptools
Scikit-build plans
setup.py
Redistributables
cibuildwheel tips
pyproject. toml
github/workflows/cd.yml (1)
Produced files
Think outside the box
Quickstart: scikit-hep/cookie
Key Takeaways
My Projects


Taught by

PyCon US

Related Courses

Intro to Python for Brand New Programmers
PyCon US via YouTube
Comprehending Comprehensions
PyCon US via YouTube
Data Analysis with SQLite and Python
PyCon US via YouTube
Build a Production Ready GraphQL API Using Python
PyCon US via YouTube
Web Development With A Python-backed Frontend - Featuring HTMX and Tailwind
PyCon US via YouTube