An easy to use library for putting colors into the terminal written in Python.
Python 3.8 or higher is required
# Linux/macOS
python3 -m pip install -U colorizon
# Windows
py -3 -m pip install -U colorizonOr install from GitHub:
$ git clone https://github.com/FelipeSavazii/Colorizon
$ cd Colorizon
$ python3 -m pip install -Ufrom colorizon.backgrounds import Backgrounds
from colorizon.colors import Colors
from colorizon.formattings import Formattings
print(Backgrounds().black('Hello, World!'))
print(Colors().pink('I love you, Ariana Grande.'))
print(Formattings().bold('Excuse me, i love you!'))Attributes for Backgrounds():
Backgrounds().black(text)
.red(text)
.green(text)
.orange(text)
.blue(text)
.purple(text)
.cyan(text)
.lightcyan(text)Attributes for Colors():
Colors().black(text)
.red(text)
.green(text)
.orange(text)
.blue(text)
.purple(text)
.cyan(text)
.lightgray(text)
.darkgray(text)
.lightred(text)
.lightgreen(text)
.yellow(text)
.lightblue(text)
.pink(text)
.lightcyan(text)Attributes for Formattings():
Formattings().normal()
.bold(text)
.disable(text)
.underline(text)
.reverse(text)
.strikethrough(text)
.invisible(text)