skip to navigation
skip to content

Not Logged In

cmdpy 1.4

Cmdpy is a library to take the rote scutwork out of writing commandline tools in python

The idea behind 'cmdpy' is to make it easy to make multi-command scripts by abstracting out all the dispatch machinery and commandline parsing.

cmdpy can be used either from the commandline:

  cmdpy mycmdpy command

or as a #! line in a python script (mycmdpy above)

By default it thinks that all attributes that start with 'cmd_' are commands you want exposed.  The 'command prefix' is settable by setting a top-level variable named 'command_prefix' to whatever you want.

right now 'echopy' is the example program


  * better example
  * some tests would be good
  * figure out how to delete mycmdpypyc that imp creates
File Type Py Version Uploaded on Size
cmdpy-1.4-py27-none-any.whl (md5) Python Wheel 2.7 2014-01-16 8KB
cmdpy-1.4.tar.bz2 (md5) Source 2014-01-16 7KB
cmdpy-1.4.tar.gz (md5) Source 2014-01-16 7KB (md5) Source 2014-01-16 9KB
  • Downloads (All Versions):
  • 60 downloads in the last day
  • 605 downloads in the last week
  • 1863 downloads in the last month