Skip to main content

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)

Table of built distributions (wheels) for colorarg 1.0.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page