Beautiful, colorful argparser.
Project description
colorarg
Beautiful, colorful argparser
Install
pip install colorarg
Usage
from colorarg import ColorArgumentParser
parser = ColorArgumentParser(
prog=f"colorarg",
description="Color Args. Very Good. \n\n"
)
parser.add_argument('-a', '--host', type=str, help="主机地址,如127.0.0.1、localhost、0.0.0.0。",default="0.0.0.0")
args = parser.parse_args()
from colorarg import CM, CM2, ColorMessage as cm, ColorMessage2 as cm2
CM.error("Error message", color='red')
CM2.warning("Warning message", color='cyan')
CM2.log("Log message", color='yellow')
cm.error("Error message", color='red')
cm.warning("Warning message", color='cyan')
cm.log("Log Message", color='yellow')
# cm.value_error("Value error", color='yellow')
# cm.exception("Exception", color='red')
cm2.error("Error message", color='red')
cm2.warning("Warning message", color='cyan')
cm2.log("Log message", color='yellow')
# cm2.value_error("Value error", color='yellow')
cm2.exception("Exception", color='red')
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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 colorarg-1.0.1-py3-none-any.whl.
File metadata
- Download URL: colorarg-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5c86baa252a26daa5e36903963b8895da7737ef830651dd59d41dc94f65339d
|
|
| MD5 |
a0f77a284f55224dd12fbca92900aef1
|
|
| BLAKE2b-256 |
adb3c1b9b2e9fbb72ec5ef39ca395a13a9034106633fd5a9f35594d280b1d42e
|