Skip to main content

SimpleColor - Add colors to your terminal output easily

Project description

SimpleColor

SimpleColor is a Python module for adding color to your terminal output easily.

Installation

You can install SimpleColor using pip. Simply run the following command:

pip install simplecolor

Usage

import simplecolor



# Colorize text with predefined colors

colored_text = simplecolor.colorize("Hello, World!", "red", "bg_black")



# Colorize text with custom hex colors

hex_colored_text = simplecolor.hex_colorize("Custom Color", "#FFA500", "bg_white")



# Clear the terminal screen

simplecolor.clear_terminal()

Or

import SimpleColor



# Colorize text with predefined colors but also automatically resets

colored_text = simplecolor.colorize("Hello, World!", "red", "bg_black", reset=True)



# Colorize text with custom hex colors but also automatically resets

hex_colored_text = simplecolor.hex_colorize("Custom Color", "#FFA500", "bg_white", reset=True)



# Clear the terminal screen

simplecolor.clear_terminal()

Predefined Colors

SimpleColor provides a variety of predefined colors, including:

  • reset

  • black

  • red

  • green

  • yellow

  • blue

  • purple

  • cyan

  • white

  • gray

  • light_red

  • light_green

  • light_yellow

  • light_blue

  • light_purple

  • light_cyan

  • pink

  • orange

  • teal

  • dark_gray

  • dark_red

  • dark_green

  • dark_yellow

  • dark_blue

  • dark_purple

  • dark_cyan

  • light_gray

  • bold_white

  • bg_black

  • bg_red

  • bg_green

  • bg_yellow

  • bg_blue

  • bg_purple

  • bg_cyan

  • bg_white

  • bg_light_gray

  • bg_dark_gray

  • bg_light_red

  • bg_light_green

  • bg_light_yellow

  • bg_light_blue

  • bg_light_purple

  • bg_light_cyan

  • bg_bold_white

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

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

Source Distribution

simplecolor-1.0.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

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

simplecolor-1.0-py3-none-any.whl (1.7 kB view details)

Uploaded Python 3

File details

Details for the file simplecolor-1.0.tar.gz.

File metadata

  • Download URL: simplecolor-1.0.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for simplecolor-1.0.tar.gz
Algorithm Hash digest
SHA256 0f16a7287b7326ddd4377b965cd24fdd49934a67bae747285a348f64b17c7166
MD5 634e481bd9521e32ad2bd3233945915f
BLAKE2b-256 c09f209221c7ed3137b70a18e05cd9848c8c9b6d5f45ba253a853a802924ba83

See more details on using hashes here.

File details

Details for the file simplecolor-1.0-py3-none-any.whl.

File metadata

  • Download URL: simplecolor-1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for simplecolor-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1a754d6435d69de081e8fb7a4221591228b45c1e883012b6c2a0958d01cd7760
MD5 72b641b6141c64218c6822c9d8d25d19
BLAKE2b-256 cbe63ab377d712f61b7957f325514e64f082ef888c6314710f5b5052e76a4af7

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