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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9cdcb699d063c3eac945b43f08baeccaabade31e4ccf1aafe56b050c19bb09ba
|
|
| MD5 |
a42907bb4e327971213f387d5f3f0e3a
|
|
| BLAKE2b-256 |
c13eb897e60c8c873c17cf45ce70e9d975280f1ea107244d619a34a44d54d95c
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11e72268439e07f6d0bff6f52d3f728788882d041c01b9e8ce9d26f61d276f05
|
|
| MD5 |
687fd3fe14a99c587772d930b085aae0
|
|
| BLAKE2b-256 |
930d3742f74c3c30bc2a3e1cc1d222de73dbcefc9e9e0d2aedf131b9c0ebe076
|