Softpedia
 


LINUX CATEGORIES:



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

    pyCEO 1.1

    Download button

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

    License / Price:

    Last Updated:

    Category:
    Juan-Pablo Scaletti | More programs
    MIT/X Consortium Lic... / FREE
    September 18th, 2012, 10:26 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    pyCEO description

    Create management scripts for your applications so you can do things like `python manage.py runserver`

    pyCEO is a Python module to create management scripts for your applications so you can do things like `python manage.py runserver`.

    Example:

        from pyceo import Manager

        manager = Manager()

        @manager.command
        def runserver(host='0.0.0.0', port=None, **kwargs):
            """[-host HOST] [-port PORT]
            Runs the application on the local development server.
            """
            app.run(host, port, **kwargs)


        @manager.command
        def initdb():
            """Create the database tables (if they don't exist)"""
            from app.models import db

            db.create_all()


        @manager.command
        def change_password(login, passw):
            """[-login] LOGIN [-passw] NEW_PASSWORD
            Changes the password of an existing user."""
            from app.app import auth

            auth.change_password(login, passw)


        if __name__ == "__main__":
            manager.run(default='runserver')


    Go to examples/ and run python manage.py help to see the result.


    Product's homepage

    Here are some key features of "pyCEO":

    · Support position based and named arguments.
    · You can define a default action.
    · Uses the docstring of the actions as help.

    Requirements:

    · Python

      


    TAGS:

    management scripts | python manage.py runserver | management | scripts | python manage.py

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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