~/talk

Writing Beautiful, Simple, and Safe Operations Scripts with Python

Talkat PyCon Italia 2024 · 2024-05-22..05-25· [developer-experience, python]
links:none on file
slides:none on file

A small wrapper around Python’s subprocess called Spix library provides a single typed run() API that handles signals, timeouts, logging, retries and returns a typed result object; it replaces dozens of brittle CI bash scripts at Smitten. Examples show verifying AWS CLI version, running terraform init/plan with retry on "text file busy" and using temporary directories, yielding Python exceptions and stack traces for diagnostics instead of opaque zero return codes. License: MIT.

AI-written summary · about

  1. 0:00Introduction
  2. 0:24The problem with bash
  3. 5:03Python as a solution
  4. 20:12Handling pipes
  5. 20:37Testing strategies
  6. 22:22Automation and conversion
  7. 28:27Architecture best practices
  8. 28:54Script design and conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.