Using Optparse, Subprocess, and Doctest To Make Agile Unix Utilities (#4)

Noah Gift bio
30min Intermediate
categories: agile, animation, cli, command line tools, engineering, shell, technique

Most developers use Unix derived command line tools, written in C, everyday. This talk will discuss using the Python Standard Library modules, Optparse, Subprocess, and Doctest, to create equally robust tools in pure Python. There has been a lot of talk recently about Web 2.0 mashups, but the same concepts can be applied to creating command line tools in Python.
 
I will be discussing how easy it is to combine the power of the Optparse module, with the flexibility of the Subprocess module, to create standalone, and "mashup" tools from existing, and widely available Unix utilities. Finally, Doctests can be embedded to serve as an important documentation and testing tool for your newly created Unix mashup tool.


Files:
slides
filesizeuploadedcomment
pycon2008_cli_noahgift.pdf 1.5 MB Tue, March 18th, 1:35 p.m. slides
pycon2008_cli_noahgift.zip 273.7 KB Tue, March 18th, 1:37 p.m. Source Code




# Permalink