Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install cmd2

How to install cmd2

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install cmd2
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.6.6.1 Available View build log
0.6.5.1 Available View build log
0.6.4 Available View build log
0.6.3 Available View build log
0.6.2 Available View build log
0.6.1 Available View build log
0.6.3
0.6.6.1Never BuiltWhy not?
0.6.3 Available View build log
Windows (64-bit)
0.6.6.1 Available View build log
0.6.5.1 Available View build log
0.6.3 Available View build log
0.6.2 Available View build log
0.6.1 Available View build log
0.6.3
0.6.6.1Never BuiltWhy not?
0.6.3 Available View build log
Mac OS X (10.5+)
0.6.5.1
0.6.6.1Never BuiltWhy not?
0.6.5.1 Available View build log
0.6.4 Available View build log
0.6.3 Available View build log
0.6.2 Available View build log
0.6.1 Available View build log
0.6.3
0.6.6.1Never BuiltWhy not?
0.6.3 Available View build log
Linux (32-bit)
0.6.6.1 Available View build log
0.6.5.1 Available View build log
0.6.4 Available View build log
0.6.3 Available View build log
0.6.2 Available View build log
0.6.1 Available View build log
0.6.3
0.6.6.1Never BuiltWhy not?
0.6.3 Available View build log
Linux (64-bit)
0.6.6.1 Available View build log
0.6.5.1 Available View build log
0.6.4 Available View build log
0.6.3 Available View build log
0.6.2 Available View build log
0.6.1 Available View build log
0.6.4
0.6.6.1Never BuiltWhy not?
0.6.4 Available View build log
0.6.5.1
0.6.6.1Never BuiltWhy not?
0.6.5.1 Available View build log
 
License
MIT
Dependencies
Lastest release
version 0.6.6.1 on Aug 17th, 2013

Enhancements for standard library's cmd module.

Drop-in replacement adds several features for command-prompt tools:

  • Searchable command history (commands: "hi", "li", "run")
  • Load commands from file, save to file, edit commands in file
  • Multi-line commands
  • Case-insensitive commands
  • Special-character shortcut commands (beyond cmd's "@" and "!")
  • Settable environment parameters
  • Parsing commands with flags
  • > (filename), >> (filename) redirect output to file
  • < (filename) gets input from file
  • bare >, >>, < redirect to/from paste buffer
  • accepts abbreviated commands when unambiguous
  • py enters interactive Python console
  • test apps against sample session transcript (see example/example.py)

Useable without modification anywhere cmd is used; simply import cmd2.Cmd in place of cmd.Cmd.

Running 2to3 <http://docs.python.org/library/2to3.html> against cmd2.py generates working, Python3-based code.

See docs at http://packages.python.org/cmd2/

Subscribe to package updates

Last updated Aug 17th, 2013

Download Stats

Last month:2

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.