parse argv-like args in python
Features
- feat(core): parse stro or stra to nano
Usage
pip install yors_pano_argv_parse
Demo
# # from main import nanoargs
from yors_pano_argv_parse import nanoargs
if __name__ == "__main__":
import sys
if len(sys.argv) > 1:
input_data = sys.argv[1:] if len(sys.argv) > 2 else sys.argv[1]
parsed = nanoargs(input_data)
print(f"Parsed argv: {parsed.argv}")
print(f"Parsed flags: {parsed.flags}")
print(f"Parsed extras: {parsed.extras}")
else:
print("Please provide command line arguments to parse.")
Metadata
Release files for yors_pano_argv_parse 0.1.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 | |
|---|---|---|---|
| yors_pano_argv_parse-0.1.0.tar.gz | 3.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| yors_pano_argv_parse-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.0 kB
Release files / yors_pano_argv_parse-0.1.0.tar.gz
| Download URL | yors_pano_argv_parse-0.1.0.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
41d61e2a07331b482958dc1840db59599319183f194dc727778095077d1fc445
|
|
BLAKE2b-256 checksum How to use checksums |
153b1ac0c8f4baf2b9590c467856ad3cd37ba2d9b5dee1c5cceafbc284c1af33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.10.6 Windows/10
|
Release files / yors_pano_argv_parse-0.1.0-py3-none-any.whl
| Download URL | yors_pano_argv_parse-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
262646c25e1935a2c76655d2aa17e36970af63c7937ae0b66d4614192847085e
|
|
BLAKE2b-256 checksum How to use checksums |
d62493f9ea64437defa2cae2cf2dd6b5dec8f6402099f259448e38947961f844
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.10.6 Windows/10
|