Skip to main content
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!

PyCommander Command Line Tool for Python modules, classes and functions.

Project Description

How it works?

Do you have a application class or a function and do you want to execute them by command line? Here is your solution: pycommander.

Installation

Via easy_install:

> easy_install pycommander

Configuration

Add a section called pycommander.command to your entry points in your setup.py file. Then put your command names pointing to a python class or function, and that it’s. For example:

[pycommander.command]
command_class=module.submodule:ExampleClass
command_function=module.submodule:function

Install your application:

> python setup.py [develop | install]

Now, you can execute pycom in your command line and see:

> pycom
ERROR: Please, enter a command name
Usage: pycom COMMAND [command_options]

Options:
  -h, --help  show this help message and exit

  Registered Commands:
    help                  Show this help message
    command_class
    command_function      <------------ This are your commands

Extra Features

  • Autocomplete for subcommands and options.
    To activate it you have source the pycommander_complete file (which is in the distribution) from your .bash_rc or .profile.
Release History

Release History

This version
History Node

1.0rc1dev

History Node

0.9rc1dev

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