Nutshell in a Python: Adapting patterns from shell scripts @NorthBayPython
Nutshell in a Python: Adapting patterns from shell scripts  @NorthBayPython
Uploaded December 2017 | Updated September 2026, 1 day ago
Brett Smith

2017.northbaypython.org/schedule/presentation/18

This talk will illustrate common patterns for writing efficient process pipelines with the subprocess module; automatically checking for errors in those pipelines; and catching those errors and reporting them to the user in a standard way by defining a custom excepthook. Used together, they'll give your script behavior more like a polished command line tool, without any serious rearchitecting. Each of these patterns is straightforward and has no dependencies outside Python's standard library, so they're easy to use in both new and existing scripts.

About North Bay Python

A single-track conference north of the Golden Gate, focused on community, collaboration, and all things Python.

North Bay Python is a two-day, single-track Python conference held at the Mystic Theatre in Historic Downtown Petaluma, California, over the weekend of December 2 & 3, 2017.

We're a nonprofit conference for professionals, enthusiasts and students alike. We're focused on inclusion, accessibility, diversity, and affordability. Most importantly, we're planning a great lineup of talks from all over the Python ecosystem, with plenty of time to meet new people and develop new ideas.

Our venue, the Mystic Theatre in Downtown Petaluma, is a beautiful example of an early 1900s Vaudeville theatre. You can find over 50 different food and drink options a short walk away, and the nearest hotel is only a block away.

A Python conference north of the Golden Gate


North Bay Python is a single-track conference with a carefully curated set of talks representing the diverse Python community and their different areas of interest.

If a topic is less to your interest, or you've met some people you really want to sit down and chat with, we'll have plenty of areas away from the main theatre to catch up and chat.

Our goal is to keep prices as low as possible. That means we won't be catering lunch. Instead, you can look forward to extra-long lunch breaks you can use to explore all of the great food options around the venue.
Nutshell in a Python: Adapting patterns from shell scriptsWhat Not To Document And Why - Margaret Fero (Nbpy2024)Cursed Comedy - Jamie Bliss and Piper Thunstrom - 2026Auditing Your Site for Accessibility: Now What?How Unreliable Computers Can Usually Agree (Sort Of): A Brief Tour of the Raft AlgorithmModern Western Square Dancing: dancing for math nerds - Dan Lyke - 2026Make your code come alive: using interactive Jupyter notebooks outside of the sciencesAn Economy of Empathy - Mario Munoz - 2026Stumbling Through Django and How Not ToWhat is Correct? and is that even the right question any more? - Christopher Neugebauer - 2026The New York Times: Sustainable Systems, Powered by PythonPython Playtesting: Crafting the Perfect Board Game - Alla Barbalat - 2026
North Bay Python |

Nutshell in a Python: Adapting patterns from shell scripts

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER