Ship your Python code faster with PEX - Shalabh Chaturvedi (North Bay Python 2023) @NorthBayPython
Ship your Python code faster with PEX - Shalabh Chaturvedi (North Bay Python 2023)  @NorthBayPython
Uploaded July 2023 | Updated September 2026, 2 days ago
Shalabh Chaturvedi

pretalx.northbaypython.org/nbpy-2023/talk/RGRCLN

A lot of Python code is shipped around in Docker images. But did you know there is another way to ship Python code to production that is... *better* in some situations? This talk covers our exploration into making code deployment faster for our users (our product runs user code in our cloud). We will cover the limits we faced with Docker builds and container provisioning, various options we explored, and why we settled on PEX.

[PEX](https://pex.readthedocs.io) is a tool that packages Python code and dependencies into a single file. It provides various features such as determinism (given the same input files, you get a bit-for-bit identical output file), isolation (a PEX file runs in the bundled environment, isolated from the system’s site-packages), composition (multiple PEX files can be combined to form new environments), and more. We used a number of these feature to great effect in our solution. By using PEX in addition to Docker we were able to reduce the time a developer waits for code to deploy from 3-4 minutes to about 30 seconds.

Shipping code isn't the only use for PEX. Once we see how PEX files work, we will also go over a few fun tips and tricks that are handy for everyday Python development.

North Bay Python is a boutique one-track conference, held in Petaluma, California. Our first events were held in 2017-2019 in a 100 year-old theater in the city's downtown. After a planned one-year break that's turned into almost four years, we're excited to return!

This year, we're holding our conference in July, in a barn, on a ranch overlooking the Petaluma River.

Produced by NDV: youtube.com/channel/UCQ7dFBzZGlBvtU2hCecsBBg?sub_confirmation=1

Sat Jul 29 14:40:00 2023 at Reis River Ranch
Ship your Python code faster with PEX - Shalabh Chaturvedi (North Bay Python 2023)2FA, WTFTo **** With Passwords! - Jacob Kaplan-Moss (North Bay Python 2019)Key Security Considerations for Publishing Your First Mobile App with PythonKeynote by Brandon RhodesState of Exception(s) - Benno Rice - 2026Nightmare on LLM Street: The Perils and Paradoxes of Knowing Your FoeBumbling into BeeWare: From typo-fix to core developer - Kattni - 2026Have you tried... - Paloma Fautley (North Bay Python 2023)See CPython run: Getting to know your Python interpreter - James Bennett (North Bay Python 2019)Obeying the Testing Goat: Building a test loving culture at your companyThe Tangled Web We Weave: Continuing Education Through Silly Projects - Joe Kaufeld (Nbpy2025)
North Bay Python |

"Ship your Python code faster with PEX" - Shalabh Chaturvedi (North Bay Python 2023)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER