Skip to content

Addefan/coloreflection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Python tool to use colors for terminal

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages