Console commands manager for Pyramid framework
Project description
pyramid_command
===========
Console commands manager for Pyramid framework
usage
======
install package
Write your console commands.
For example in myproject/console.py:
from pyramid_command import Command
class MyCmd(Command):
name = "my_cmd"
description = "My usefull command"
args = (
("echo", {"help":"echo the string you use here"}),
(("-f", "--file"), {"help":"file"}),
)
def run(self, echo='dd', file=None):
print self.name, "runs", echo, file
Then configure where to search your commands.
For example in development.ini:
[app:main]
use = egg:myproject
...
...
console_commands = myproject.console
Now run:
>>>pcommand development.ini my_cmd echoval
CHANGES.txt
===========
Console commands manager for Pyramid framework
usage
======
install package
Write your console commands.
For example in myproject/console.py:
from pyramid_command import Command
class MyCmd(Command):
name = "my_cmd"
description = "My usefull command"
args = (
("echo", {"help":"echo the string you use here"}),
(("-f", "--file"), {"help":"file"}),
)
def run(self, echo='dd', file=None):
print self.name, "runs", echo, file
Then configure where to search your commands.
For example in development.ini:
[app:main]
use = egg:myproject
...
...
console_commands = myproject.console
Now run:
>>>pcommand development.ini my_cmd echoval
CHANGES.txt
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 Distribution
pyramid_command-0.1.tar.gz
(2.9 kB
view details)
File details
Details for the file pyramid_command-0.1.tar.gz.
File metadata
- Download URL: pyramid_command-0.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7622b1e9383e48c05f700d5c5d6444a39cccd608cf92e80410054ec13ca52306
|
|
| MD5 |
6d43166286b6422d955600c79916895b
|
|
| BLAKE2b-256 |
e60f60034a4af3eb11efd3e5b0b2d4d55ad26e8d7c46797a25a7cddc5e382ef5
|