cmd-parser
The cmd-parser library provides a simple way to parse command-line style input strings into a structured dictionary format. This is useful for applications that need to interpret commands with arguments and parameters.
Table of Contents
Installation
You can install the Command Parser Library using pip:
pip install cmd-parser
Usage
Here's a quick example of how to use the library:
from cmd_parser.core import asdict, parse
command_string = '!command arg1 arg2 param1="value1 test" param2=value2'
parsed_command = parse(command_string)
print(asdict(parsed_command))
This will output:
{
'command': 'command',
'args': ['arg1', 'arg2'],
'kwargs': {
'param1': 'value1 test',
'param2': 'value2'
}
}
License
cmd-parser is distributed under the terms of the MIT license.
Metadata
Release files for cmd-parser 0.0.1
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 |
|---|---|---|---|---|
| cmd_parser-0.0.1.tar.gz | 6.9 kB | Without provenance | Details for cmd_parser-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cmd_parser-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for cmd_parser-0.0.1-py3-none-any.whl |
Total release size: 11.1 kB
Release files / cmd_parser-0.0.1.tar.gz
| Download URL | cmd_parser-0.0.1.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e7e830e0a5682a738590375aec201251f92cf51b5ca921f1f532e16ca35a7140
|
|
BLAKE2b-256 checksum How to use checksums |
e239faf3e528309c3298ff2420adc3de36bc2ddecd98136955a67dc5913143dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Release files / cmd_parser-0.0.1-py3-none-any.whl
| Download URL | cmd_parser-0.0.1-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b856189d552abab94c75ea3c79c617b4b55942bff40a1d29945d65de5bfd7fd3
|
|
BLAKE2b-256 checksum How to use checksums |
8e51ba485b31bd1ce18dd36e24782718e49ced2d77ee00f9cc7ae9a7e462e4fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Security for cmd-parser 0.0.1
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.