Python Makes Robust Command-Line Tools
techwatcher on April 13th, 2008
Your bookshelf is not complete without these books! Check out the Absolutely Must Have Books List
When I write tools for the Unix command line, they’re typically either shell scripts or Perl.
An article from IBM’s developerWorks site has opened my eyes to the potential of Python for this purpose. The optparse library provides built-in parsing of command-line arguments, with automatic help display and error handling. The subprocess module handles system calls smoothly, and the ConfigParser module parses name=value config files.
I didn’t know Python could do that stuff. Here’s the article.








