Creating Command Line Tools With Python
Standard library support for parsing command lines
getopt C-style command line parser
Other articles on Python command line tools
For sysadmins familiar with Bash scripting: Beginner Level, circa 02/2008
Using Python To Create Unix Commandline Tools: Beginning/Intermediate Level
- Summary: An introductory article on how to create command line tools with Python. A beginner should learn how to create command line tool after finishing.
Command line tool with optparse, subprocess, and logging: Beginning/Intermediate level
- Summary: This script provides shortcuts for using a Git repository but the script could be used as a template for other shell tools.
PyCon2008 Presentation on Command Line Tools: Intermediate Level