PyCommander Command Line Tool for Python modules, classes and functions.
Project description
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 subccomands and options.
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 Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pycommander-0.9rc1dev.win32.exe.
File metadata
- Download URL: pycommander-0.9rc1dev.win32.exe
- Upload date:
- Size: 76.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22586ea729fc95a9a4f5ac60b9f58190f20b93e107c36c18f48b7ac1b3190349
|
|
| MD5 |
b66cb1dab13f27c10637f2c9a34dcf97
|
|
| BLAKE2b-256 |
487f9ae12c99dadfa21bd3aef64d097155e7eef705a2168964a0407ff171d454
|