Skip to main content

Module for using colors for the terminal, based on reflection

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

coloreflection-0.1.0.tar.gz (14.5 kB view hashes)

Uploaded Source

Built Distribution

coloreflection-0.1.0-py3-none-any.whl (14.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page