cmd — Line-oriented Command Processors — PyMOTW 3

The cmd module contains one public class, Cmd , designed to be used as a base class for interactive shells and other command interpreters. By default it uses readline for interactive prompt handling, command line editing, and command completion.