Sets text colors and effects in console
Project description
Colorant
Intro
- Sets text colors and effects in console.
Installation
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()
printsOK
in black on a light green background. tests/demo.py
contains more example usages.
- e.g.
Reference
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
colorant-1.0.0.tar.gz
(4.8 kB
view hashes)