Skip to main content

Extra features for standard library's cmd module

Project description

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

  • 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.

Usage samples at http://catherine.devlin.googlepages.com/cmd2.html

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cmd2-0.4.5.tar.gz (13.5 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

cmd2-0.4.5-py2.6.egg (26.2 kB view details)

Uploaded Egg

cmd2-0.4.5-py2.5.egg (26.1 kB view details)

Uploaded Egg

cmd2-0.4.5-py2.4.egg (26.5 kB view details)

Uploaded Egg

File details

Details for the file cmd2-0.4.5.tar.gz.

File metadata

  • Download URL: cmd2-0.4.5.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cmd2-0.4.5.tar.gz
Algorithm Hash digest
SHA256 3cc811cbcd8a31688730b00bd29ecd1015c773a8698dc0c1c1caa173b7adbe71
MD5 d4938ca182a19d026391efff7f20606e
BLAKE2b-256 c1f101218ae8e80c2d4f056080c3f1ff016b1d24d42e30e9b6c67e78346c02dc

See more details on using hashes here.

File details

Details for the file cmd2-0.4.5-py2.6.egg.

File metadata

  • Download URL: cmd2-0.4.5-py2.6.egg
  • Upload date:
  • Size: 26.2 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cmd2-0.4.5-py2.6.egg
Algorithm Hash digest
SHA256 7a621096ebe9bfc4d09a1a5f4cb73a7d1fdd840c3f4c5013061aec2c68f3b595
MD5 1b174104692646d9d8c18fc91e960938
BLAKE2b-256 9388fb88a0c8d8d94f5efcfbaa47c8d110277e7101fbca7c099df0e17553dfe5

See more details on using hashes here.

File details

Details for the file cmd2-0.4.5-py2.5.egg.

File metadata

  • Download URL: cmd2-0.4.5-py2.5.egg
  • Upload date:
  • Size: 26.1 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cmd2-0.4.5-py2.5.egg
Algorithm Hash digest
SHA256 3d105e8ffa7c4657c2c6c003359b2a94987cca2e6019d007b0e453eeaecb2fea
MD5 3fe962265113e139141bb190929de352
BLAKE2b-256 b4b3c73b6f8825083ec9e825aaa4c2d05f3ad62ec24823acea8635081a5e6c44

See more details on using hashes here.

File details

Details for the file cmd2-0.4.5-py2.4.egg.

File metadata

  • Download URL: cmd2-0.4.5-py2.4.egg
  • Upload date:
  • Size: 26.5 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cmd2-0.4.5-py2.4.egg
Algorithm Hash digest
SHA256 1f66a1fe1915c52e8e32167320128f4fded3b0d461e3670af55e570986a62520
MD5 3ff014a7fae3cc4229c6d79ce9c7c05b
BLAKE2b-256 a1f5c63d46d61d1adf5ef344051093ea4495b1e10992d18b4e425d47a3a799fe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page