Metadata-Version: 2.4
Name: colorarg
Version: 1.0.1
Summary: Beautiful, colorful argparser.
Author: B K
License: BSD-2-Clause license and the permission of authors
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: colorama

# 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')
```
