pyramid_command 0.1

Console commands manager for Pyramid framework

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
Other/Proprietary License
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
appetito
HOMEPAGE:
github.com
CATEGORY:
ROOT \ Internet \ HTTP (WWW)
pyramid_command provides a 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

Last updated on August 2nd, 2012

requirements

#commands manager #pyramid framework #pyramid #commands #manager #console

Add your review!

SUBMIT