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')
Metadata
Release files for colorarg 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| colorarg-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / colorarg-1.0.1-py3-none-any.whl
| Download URL | colorarg-1.0.1-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a5c86baa252a26daa5e36903963b8895da7737ef830651dd59d41dc94f65339d
|
|
BLAKE2b-256 checksum How to use checksums |
adb3c1b9b2e9fbb72ec5ef39ca395a13a9034106633fd5a9f35594d280b1d42e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.2
|