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 Actions
colorarg-1.0.1-py3-none-any.whl Python 3 none any Details for colorarg-1.0.1-py3-none-any.whl

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

Security for colorarg 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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