Metadata-Version: 1.0
Name: miniparser
Version: 1.0.2
Summary: minimum commandline option parser.
Home-page: http://github.com/alice1017
Author: alice1017
Author-email: takemehighermore@gmail.com
License: MIT
Download-URL: http://github.com/alice1017/miniparser
Description: What's miniparser?##################The **miniparser** is minimum commandline option parser.miniparser can use easily.This is a library for people that think argparse or optparse is difficult.How to use-----------.. sourcecode:: python    #!/usr/bin/python    import miniparser    parser = miniparser.parser()    @parser.option("-m","--message","msg", description="print message!")    def show_msg(msg):        print msg    @parser.option("-c","--calc","calc", description="calc number!")    def calcucation(num1, num2):        print int(num1)+int(num2)    if __name__ == "__main__":        parser.parse()First, import script.^^^^^^^^^^^^^^^^^^^^^^    import miniparserSecond, create parser instance.^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^    parser = miniparser.parser()Third, define optin.^^^^^^^^^^^^^^^^^^^^^^^^^^Miniparser use **decorator** to defininig option.The arguments of decorator~~~~~~~~~~~~~~~~~~~~~~~~~~~hooks    The option hook. write option name as you like. You can set multiple but cannot duplicate.description    The description of option.argument_types    You can set types about argument of option. this is only required dictionary that {'argument_name':'argument_type'}.Forth, Parsing^^^^^^^^^^^^^^^^    parser.parse()That's only!This is opensource.----------------------You can see source code on `Github <https://github.com/alice1017/miniparser>` .License is MIT License.Author----------author name is 'Alice'.* Twitter id : alice1017* github id  : alice1017Thank you!
Platform: UNKNOWN
