Metadata-Version: 2.1
Name: colorant
Version: 1.0.0
Summary: Sets text colors and effects in console
Home-page: https://github.com/Nick-Lrc/colorant
Author: Nick Liu
Author-email: itrust19@yahoo.com
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
License-File: LICENSE

# Colorant

## Intro

- Sets text colors and effects in console.

## Installation

```bash
pip install colorant
```

## Features

- Foreground and background colors
  - Black
  - Red
  - Green
  - Yellow
  - Blue
  - Magenta
  - Cyan
  - White
  - Bright black
  - Bright red
  - Bright green
  - Bright yellow
  - Bright blue
  - Bright magenta
  - Bright cyan
  - Bright white
- Decorations
  - Bold
  - Underline
  - Reversed
- Function chaining
  - e.g. `Colorant().bg_lt_green().black('OK').flush()` prints `OK` in black on a light green background.
  - `tests/demo.py` contains more example usages.

![demo](https://raw.githubusercontent.com/Nick-Lrc/colorant/main/demo.png)

## Reference

1. [Build your own Command Line with ANSI escape codes](https://www.lihaoyi.com/post/BuildyourownCommandLinewithANSIescapecodes.html)
2. [ANSI escape code](https://en.wikipedia.org/wiki/ANSI_escape_code)
3. [Colors In Terminal](http://jafrog.com/2013/11/23/colors-in-terminal.html)
4. [STY](https://sty.mewo.dev/index.html)


