Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.55 KB

File metadata and controls

47 lines (31 loc) · 1.55 KB

Coloreflection icon

Coloreflection

A tool with which you can use colors in your Python code to decorate terminal output.

Install

pip install coloreflection

or,

poetry add coloreflection

Capabilities

Dark PyCharm theme

Styles with dark PyCharm theme Foreground colors with dark PyCharm theme Background colors with dark PyCharm theme

Light PyCharm theme

Styles with light PyCharm theme Foreground colors with light PyCharm theme Background colors with light PyCharm theme

Usage

from coloreflection import Color

C = Color()

print(C.border(" Using style for text "))
print(C.FG.red("Changing text color"))
print(C.BG.green("Changing text background"))

print(C.border(C.bold(C.FG.pink("You can"))), "combine", 
      C.BG.blue(C.FG.yellow(f"different colors{C.reverse(' and styles.')}")))

Usage examples