~/talk

A Python Script to Replace a DOS Batch File Adventure

Talkat PyOhio 2014 · 2014-07-26..07-27· [python]
slides:none on file

Converts a brittle MS‑DOS batch that uninstalls, runs wget, and calls setup.exe into a Python tool that measures elapsed install/download time with datetime, checks install error files via os.path.getmtime, and copies/removes builds with shutil; uses subprocess only when calling external executables, offers argparse (optparse/click) for AM/PM build and backup flags, can use urllib/urllib2 for downloads and pysvn for repo updates, sends notifications via email, and replaces daily manual steps successfully in the presenter’s workflow.

AI-written summary · about

  1. 0:00Intro
  2. 1:33My Typical Development Day
  3. 3:50DOS Batch Script (part 1)
  4. 5:33DOS Batch Script (part 3)
  5. 7:21Adding more functionality?
  6. 9:48What is a module?
  7. 12:02Using a module
  8. 13:38Python Modules to Resolve My Issues
  9. 14:32Determine Elapsed Time
  10. 15:32Determine Install Errors
  11. 16:38Call other programs
  12. 17:25Full Python Listing
  13. 22:22Command Line Arguments?
  14. 23:42Sample argparse use
  15. 27:12Alternatives to argparse?
  16. 28:51How about wget?
  17. 29:36Notifications?
  18. 30:37How about my source control scripts? • Checkout/update sandbox in an automated way
  19. 33:17Can I learn more about the standard library modules?
  20. 34:11Search the Package Index
  21. 34:58Your favorite module?
  22. 35:55Would I do this again?
  23. 37:05Questions / Feedback?
~/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.