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.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    clize 2.0

    Download button

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

    License / Price:

    Last Updated:

    Category:
    Yann Kaiser | More programs
    MIT/X Consortium Lic... / FREE
    December 7th, 2011, 07:24 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    clize description

    Function decorator to quickly turn functions into CLIs as we know them

    clize is a decorator that will turn your normal Python functions into proper shell commands.

    For example, this code:

    from clize import clize, run

    @clize
    def echo(reverse=False, *text):
     # ...

    if __name__ == '__main__':
     run(echo)


    will yield the CLI described by this:

    Usage: fn [OPTIONS] [text...]

    Positional arguments:
     text...

    Options:
     --reverse
     -h, --help Show this help


    The decorator can take a few parameters all described in the README file.


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    function decorator | Python functions | shell commands | Python | function | decorator

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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