Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

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

Project Description

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

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


Download Files

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

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(9.1 kB) Copy SHA256 Hash SHA256
2.7 Wheel Jan 16, 2014
(7.6 kB) Copy SHA256 Hash SHA256
Source Jan 16, 2014
(7.9 kB) Copy SHA256 Hash SHA256
Source Jan 16, 2014
(10.0 kB) Copy SHA256 Hash SHA256
Source Jan 16, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting