parse argv-like args in python
Project description
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.")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 yors_pano_argv_parse-0.1.0.tar.gz.
File metadata
- Download URL: yors_pano_argv_parse-0.1.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.10.6 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41d61e2a07331b482958dc1840db59599319183f194dc727778095077d1fc445
|
|
| MD5 |
a7a60f50335ab02dff10366abf172587
|
|
| BLAKE2b-256 |
153b1ac0c8f4baf2b9590c467856ad3cd37ba2d9b5dee1c5cceafbc284c1af33
|
File details
Details for the file yors_pano_argv_parse-0.1.0-py3-none-any.whl.
File metadata
- Download URL: yors_pano_argv_parse-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.10.6 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
262646c25e1935a2c76655d2aa17e36970af63c7937ae0b66d4614192847085e
|
|
| MD5 |
c8cce4afde7277e657019759795b9b4e
|
|
| BLAKE2b-256 |
d62493f9ea64437defa2cae2cf2dd6b5dec8f6402099f259448e38947961f844
|