Metadata-Version: 2.1
Name: colorprt
Version: 1.0.3
Summary: It's a simple package for you to customize the printing color.
Home-page: https://github.com/Michaelzhouisnotwhite/Colorprt
Author: MichaelZhou
Author-email: zyqing601@163.com
Project-URL: Bug Tracker, https://github.com/Michaelzhouisnotwhite/Colorprt/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
License-File: LICENSE

# Colorprt

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

## Usage

```bash
pip install colorprt
```

```python
from colorprt 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 colorprt import ColorprtConfig, Mode, Back, Fore

pycolor_config = ColorprtConfig(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 colorprt import colorstr, Mode, Back, Fore, ColorprtConfig

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


