Skip to main content

Formats strings of args into dicts

Project description

nevargs

It's a simple package that using shlex formats your cli-like argument strings and format them into a dict

>>> import nevargs
>>> s = "this is -f True fun -c command"
>>> nevargs.dictify(s)
{'args': ['this', 'is', 'fun'], '-f': ['True'], '-c': ['command']}

Arguments with no value are returned under args and for each flag found, it's arguments are under {flag}

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

nevargs-0.0.5.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

nevargs-0.0.5-py3-none-any.whl (3.1 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