Skip to main content

color4console enables you to print colorful text without wasting time experimenting with various color combinations.

Project description

color4console

color4console enables you to print colorful text without wasting time experimenting with various color combinations. It comes with a predefined color scheme. The color of the text is determined by the chosen theme. This package's goal is to keep things as simple as possible. When the color of a text line is red, for example, bolding, underlining, or highlighting it is not essential. In the same way, if a text line is underlined, it may not be necessary to color it.

Installation

You need to install the package using pip.

pip install color4console

Pre defined themes:

You can chose any of the following theme. Text color will automatically set based on your selected theme.

default
light
dark
highlight
symbol

Color Supported Functions:

info()
success()
warning()
error()
fatal()

Other Functions:

normal()
bold()
underline()
italic()
light()
blink()

Usage

In your terminal or python file, use as below.

from color4console import *
log = ColorTheme("light")
log.error("This is a SAMPLE ERROR message.")

Sample error message text color

You can also use following function to check all output of a sample message:

from color4console import *
ColorTest("This is a SAMPLE TEXT to test.")

Sample light theme message Sample symbol theme message Sample highlight theme message Sample other functions

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

color4console-0.0.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

color4console-0.0.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file color4console-0.0.1.tar.gz.

File metadata

  • Download URL: color4console-0.0.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for color4console-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0124332c0c7a7202dc499af9af23862020416f0c812dd3b2b0e165faa0d98bf1
MD5 8facb431414d38e18fa76036e6c8ca30
BLAKE2b-256 e11670f5b5c7ee14c7ce633a3a0290b529536eb7ba705032af318ecd5062ccf6

See more details on using hashes here.

File details

Details for the file color4console-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: color4console-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for color4console-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 124b9619bfcbd4dafbf1a2fdff6d8acb1e4c78c638351fd0ca25f28b45f03739
MD5 0fce80b028a5822337fbd6064495ef96
BLAKE2b-256 19811738c941d83c2fc8110ba1860d53e6eef033bc71652336e8ed415b8f747c

See more details on using hashes here.

Supported by

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