Skip to main content

get args from command line, environment and configuration file.

Project description

get_args

get args from command line, environment and configuration file.

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

args definition:

example.yaml

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

get_args-1.3.tar.gz (5.4 kB view hashes)

Uploaded Source

Built Distribution

get_args-1.3-py3-none-any.whl (20.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page