~/talk

An Admin's Cornucopia - Python Is More Than Just A Better Bash

Talkat PyCon.DE 2017 · 2017-10-25..10-27· [python, devops-and-delivery]
links:none on file
slides:none on file

Shows real code from infrastructure: tiny scripts through a Pyramid + SQLAlchemy inventory app, mixing Python 2.7 and 3.x. Demonstrates atomic rename via a rewrite context manager and why combining that with counting locks breaks (inode vs lock mismatch). Uses structlog, pexpect, execnet, async IO with 100–200 concurrent coroutines for backups, and a C shim to produce small Python binaries later replaced by Rust. Tests run with pytest + vagrant chaos tests that uncovered a bug after 48 hours of 5–10 migrations/sec.

AI-written summary · about

  1. 0:00Intro
  2. 5:36What is Python
  3. 8:53Context managers
  4. 12:41String formatting
  5. 14:09Backup utility
  6. 15:33Async method
  7. 16:41struct lock
  8. 16:56log objects
  9. 17:50output
  10. 18:05context annotation
  11. 18:33Expect
  12. 19:47SCP Interface
  13. 20:04ExitNet
  14. 21:08ChangeOwn
  15. 21:42Dynamic Linking
  16. 22:26Summary
  17. 22:46Thanks
~/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.