Differences between revisions 13 and 14
Revision 13 as of 2009-05-31 22:22:28
Size: 1804
Editor: bas3-kingston08-1168067989
Comment: Added link to Python system scripting for Bash programers. Changed order of links to put beginner ones first
Revision 14 as of 2009-05-31 23:00:16
Size: 1820
Editor: bas3-kingston08-1168067989
Comment:
Deletions are marked like this. Additions are marked like this.
Line 17: Line 17:
 * This script provides shortcuts for using a Git repository but the script could be used as a template for other shell tools: [[http://www.jperla.com/blog/2008/11/17/a-clean-python-shell-script/ | A Clean Python Shell Script ]].  * Summary: This script provides shortcuts for using a Git repository but the script could be used as a template for other shell tools.

 *
[[http://www.jperla.com/blog/2008/11/17/a-clean-python-shell-script/ | A Clean Python Shell Script ]].

Creating Command Line Tools With Python

The Python standard library has many modules that make creating commandline tools quite simple. Often command line tools are made with pure Python modules, or are a mixture of calls to an operating system and Python, through the subprocess module. Some of the commonly used modules to create commandline tools are: optparse, configparser, and subprocess.

For sysadmins familiar with Bash scripting: Beginner Level, circa 02/2008

Using Python To Create Unix Commandline Tools: Beginning/Intermediate Level

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.
  • A Clean Python Shell Script.

PyCon2008 Presentation on Command Line Tools: Intermediate Level

CommandlineTools (last edited 2021-02-07 21:57:21 by IwanAucamp)

Unable to edit the page? See the FrontPage for instructions.