pyramid_command

Console commands manager for Pyramid framework
Download

pyramid_command Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Other/Proprietary Li...
  • Price:
  • FREE
  • Publisher Name:
  • appetito
  • Publisher web site:
  • https://github.com/appetito/

pyramid_command Tags


pyramid_command Description

pyramid_command provides a console commands manager for Pyramid framework.Usageinstall packageWrite your console commands. For example in myproject/console.py:from pyramid_command import Commandclass 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, fileThen configure where to search your commands. For example in development.ini: use = egg:myproject ... ... console_commands = myproject.consoleNow run:>>>pcommand development.ini my_cmd echovalProduct's homepage


pyramid_command Related Software