Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Internet > HTTP (WWW)

    pyramid_command 0.1

    Download button

    No screenshots available
    Downloads: 62  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    appetito | More programs
    Other/Proprietary Li... / FREE
    August 2nd, 2012, 10:49 GMT
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    pyramid_command description

    Console commands manager for Pyramid framework

    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


    Product's homepage

    Requirements:

    · Python
    · pyramid

      


    TAGS:

    commands manager | pyramid framework | pyramid | commands | manager

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM