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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nevargs-0.0.5-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file nevargs-0.0.5.tar.gz.

File metadata

  • Download URL: nevargs-0.0.5.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for nevargs-0.0.5.tar.gz
Algorithm Hash digest
SHA256 9cdcb699d063c3eac945b43f08baeccaabade31e4ccf1aafe56b050c19bb09ba
MD5 a42907bb4e327971213f387d5f3f0e3a
BLAKE2b-256 c13eb897e60c8c873c17cf45ce70e9d975280f1ea107244d619a34a44d54d95c

See more details on using hashes here.

File details

Details for the file nevargs-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: nevargs-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for nevargs-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 11e72268439e07f6d0bff6f52d3f728788882d041c01b9e8ce9d26f61d276f05
MD5 687fd3fe14a99c587772d930b085aae0
BLAKE2b-256 930d3742f74c3c30bc2a3e1cc1d222de73dbcefc9e9e0d2aedf131b9c0ebe076

See more details on using hashes here.

Supported by

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