Metadata-Version: 2.1
Name: get-args
Version: 0.4
Summary: get args from command line, environment and configuration file.
Home-page: https://github.com/fun04wr0ng/get_args
Author: fun04wr0ng
Author-email: fun04wr0ng@gmail.com
License: GPL v3
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.6
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: python-dotenv
Requires-Dist: pyyaml
Provides-Extra: toml
Requires-Dist: toml ; extra == 'toml'

# get_args

get args from command line, environment and configuration file.

https://packaging.python.org/tutorials/packaging-projects/


args definition:

[example.yaml](get_args/example.yml)

    a public_ip_api:
        action: store
        nargs: +
        const:
        default:
        - http://www.myipaddress.com/
        - https://www.ipip.net/
        - http://20019.ip138.com/
        type: !!python/name:builtins.list
        choices:
        required:
        help: public http[s] api to get public ip
        metavar: API
        dest:

    options:
        prog: ''
        usage: '%(prog)s [options]'
        description: 'ddns_client'
        epilog: 'generated by get_args.'
        add_help: ''
        allow_abbrev: true

