Metadata-Version: 2.1
Name: kwargparse
Version: 1.0.0
Summary: Parser that parses Python's kwargs similar to the way done by setuptools, while exporting an interface like argparse
Home-page: UNKNOWN
Author: Gaming32
Author-email: gaming32i64@gmail.com
License: License :: OSI Approved :: MIT License
Platform: UNKNOWN
Description-Content-Type: text/markdown

# Using this tool
This tool's format is very similar to that of the `argparse` module. Example setup:
``` python
import kwargparse

_kwarg_parser = kwargparse.KeywordArgumentParser()
def _init_kwarg_parser():
    _kwarg_parser.add_argument('hello')
    subp = _kwarg_parser.add_subparser('sub', default={'world': 20})
    subp.add_argument('world', default=20)

def main(**kwargs):
    result = _kwarg_parser.parse_kwargs(kwargs)
    print(result)
    print(result.sub.world)

_init_kwarg_parser()

if __name__ == '__main__':
    main(
        hello = 1,
        sub = dict(
            world = 2,
        ),
    )
```
# Installing
To install simply use:
``` shell
$ pip3 install kwargparse
```

