Using this tool
This tool's format is very similar to that of the argparse module. Example setup:
import kwargparse
_kwarg_parser = kwargparse.KeywordArgumentParser()
def _init_kwarg_parser():
_kwarg_parser.add_argument('hello')
subp = _kwarg_parser.add_subparser('sub', default={'world': 20})
subp.add_argument('world', default=20)
def main(**kwargs):
result = _kwarg_parser.parse_kwargs(kwargs)
print(result)
print(result.sub.world)
_init_kwarg_parser()
if __name__ == '__main__':
main(
hello = 1,
sub = dict(
world = 2,
),
)
Installing
To install simply use:
$ pip3 install kwargparse
Metadata
Release files for kwargparse 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kwargparse-1.0.0.tar.gz | 2.5 kB | Without provenance | Details for kwargparse-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kwargparse-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for kwargparse-1.0.0-py3-none-any.whl |
Total release size: 6.0 kB
Release files / kwargparse-1.0.0.tar.gz
| Download URL | kwargparse-1.0.0.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9290d59567438ad20b8adb07d7b006daa629be1fa2fda10cef6229bf8da46996
|
|
BLAKE2b-256 checksum How to use checksums |
1e7cb55be4d53506826a7c4e9082935c9badb6d73d98cae2cb7cca9159108738
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.0
|
Release files / kwargparse-1.0.0-py3-none-any.whl
| Download URL | kwargparse-1.0.0-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1a403a25f2b8fbbe96948f1f96f1c6ee0fb7a328699d69f785ece951d48ec875
|
|
BLAKE2b-256 checksum How to use checksums |
d0788e0b098bff711bb8f2d15a06cce5f945f5030e876cba3ee8aa512e860af3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.0
|
Security for kwargparse 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.