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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file coloreflection-0.1.0.tar.gz.

File metadata

  • Download URL: coloreflection-0.1.0.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.10.10 Linux/5.19.0-45-generic

File hashes

Hashes for coloreflection-0.1.0.tar.gz
Algorithm Hash digest
SHA256 eef1ef13c7d45798f3acd6c2e4907c33c21594f94df9a7851f16767c0a673e74
MD5 430aa404589eaf08ee180cb92707c008
BLAKE2b-256 cf01686633b61f67de75913d965e49e91905a5cddff95fbc6b96efa3c28b35c5

See more details on using hashes here.

File details

Details for the file coloreflection-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: coloreflection-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.10.10 Linux/5.19.0-45-generic

File hashes

Hashes for coloreflection-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6c78a7e0204618069ccd12825bf7c4d9343cfc8e51a4b4e9509b6759d9a2db1a
MD5 254b26c5740dccd8668ee22ae2e2818a
BLAKE2b-256 9eec96538918d4774ca0e58e7f93b2fd3326c243ed138ee8fa28677e0b4f364b

See more details on using hashes here.

Supported by

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