This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
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

TODO:

* better example
* some tests would be good
* figure out how to delete mycmdpypyc that imp creates

Release History

Release History

This version
History Node

1.4

History Node

1.3

History Node

1.2

History Node

1.1

History Node

1.0

History Node

0.0.1-

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
cmdpy-1.4-py27-none-any.whl (9.1 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Jan 16, 2014
cmdpy-1.4.tar.bz2 (7.6 kB) Copy SHA256 Checksum SHA256 Source Jan 16, 2014
cmdpy-1.4.tar.gz (7.9 kB) Copy SHA256 Checksum SHA256 Source Jan 16, 2014
cmdpy-1.4.zip (10.0 kB) Copy SHA256 Checksum 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