Metadata-Version: 2.1
Name: colorprt
Version: 1.0.0
Summary: It's a simple package for you to customize the printing color.
Home-page: https://github.com/Michaelzhouisnotwhite/PyColorPrint
Author: MichaelZhou
Author-email: zyqing601@163.com
Project-URL: Bug Tracker, https://github.com/Michaelzhouisnotwhite/PyColorPrint/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown

# Colorprt

It's a simple package for you to customize the printing color.

## Usage

```bash
pip install colorprt
```

```python
from pycolorprint import colorprt, Back, Fore

colorprt("Hello World", background=Back.RED)
```

Back stands for background;Fore stands for foreground

Also, you can use a config class to print colored strings.

```python
from pycolorprint import PyColorConfig, Mode, Back, Fore

pycolor_config = PyColorConfig(mode=Mode.BOLD, background=Back.DEFAULT, foreground=Fore.RED)
pycolor_config("I love You!!", end="")
```

If you just want the ansi colored formatted strings, you can use `clrstr` class.

```python
from pycolorprint import clrstr, Mode, Back, Fore, PyColorConfig

hate_print_config = PyColorConfig(mode=Mode.UNDER_LINE, background=Back.DEFAULT, foreground=Fore.YELLOW)
print(clrstr("I love You!!", mode=Mode.BOLD, background=Back.DEFAULT, foreground=Fore.RED)
      + clrstr("I hate you", hate_print_config))
```


