Metadata-Version: 2.1
Name: clicolor
Version: 1.0
Summary: Quick python reference for terminal color escape codes
Home-page: https://github.com/camas/clicolors
Author: Camas
License: UNKNOWN
Platform: UNKNOWN
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

# clicolors

Quick python reference for terminal color escape codes

## Usage

Install options:

- Install the package

- Add as a submodule

```python
git submodule add https://github.com/camas/clicolors
```

- Or just copy `cli.py` and `LICENSE` somewhere

Then `from clicolors.cli import CLI, ...`

## Examples

```python
print(f"{CLI.BG_YELLOW}{CLI.GREEN}Green on yellow.{CLI.RESET}")
```

![Green text on yellow background example](examples/green_on_yellow.png)

```python
print(f"{CLI.BOLD}{CLI.RED}Bold red.{CLI.RESET}")
```

![Bold red text example](examples/bold_red.png)

```python
print(f"{CLIT.bg(128,0,0)}{CLIT.fg(255,99,71)}Truecolor tomato red on maroon red background{CLI.RESET}")
```

![Truecolor red example](examples/truecolor_red.png)

## test.py

use test.py to run a variety of tests including modifiers, 8/16 colors, 256 colors and Truecolors.


