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)