New command line interface to PyMOTW

The 1.95 release of PyMOTW includes a command line interface to access the documentation for a module.

The package can be installed via easy_install or pip:

$ pip install PyMOTW
Downloading/unpacking PyMOTW
  Downloading PyMOTW-1.95.tar.gz (2.2Mb): 2.2Mb downloaded
  Running setup.py egg_info for package PyMOTW
    warning: no files found matching 'ChangeLog'
    warning: no files found matching '*.py' under directory 'sphinx/templates'
    no previously-included directories found matching 'utils'
Installing collected packages: PyMOTW
  Running setup.py install for PyMOTW
    changing mode of build/scripts-2.6/motw from 644 to 755
    warning: no files found matching 'ChangeLog'
    warning: no files found matching '*.py' under directory 'sphinx/templates'
    no previously-included directories found matching 'utils'
    changing mode of /Users/dhellmann/.virtualenvs/testpymotw/bin/motw to 755
Successfully installed PyMOTW

and then to use the command line interface, run motw.

$ motw -h
Usage: motw [options]

Options:
  -h, --help  show this help message and exit
  -t, --text  Print plain-text version of help to stdout
  -w, --web   Open HTML version of help from web
  --html      Open HTML version of help from installed file

For example, motw abc opens the local version of this week’s article. You can also use the “-w” option to go to my web site instead of reading the local version, so you always have the latest version of an article.