Skip to main content

A package designed to add color to text in console based applications. **[Credit to [colorama]('https://pypi.org/project/colorama/') for a few of the colors]**

Project description

AltColor

AltColor is a package designed to add color to text in console based applications.

All predefined colors(colors that are not RGB) [Credit to colorama for a few of the colors]:

"BLACK" "RED" "GREEN" "YELLOW" "BLUE" "MAGENTA" "CYAN" "WHITE" "LIGHTBLACK" "LIGHTRED" "LIGHTGREEN" "LIGHTYELLOW" "LIGHTBLUE" "LIGHTMAGENTA" "LIGHTCYAN" "LIGHTWHITE"

Installation

Install via pip:

pip install altcolor

Example code:

from altcolor import colored_text, leaked_text, reset, cPrint

# Colored text allows you to paint your words with RGB
print(colored_text((244, 5, 7), "Hello World!"))

# Here's a regular print
print("Hello World!")

# We even have predefined colors
print(colored_text("BLUE", "Hello World!"))


# Leaked text splills into other print statements until you use reset()
print(leaked_text("RED", "Hey,"))
print("you")
print("are" + reset())

# Leaked text can even spill into the background
print(leaked_text("WHITE", "cool!", "Back"))
print("How")
print("are")
print("you?" + reset())

# You can also use cPrint
cPrint(color="RED", text="Hello World!", objective="controlled")
print("Hello World!")
cPrint(color="RED", text="Hello World!", objective="leaked")
print("Hello World!" + reset())
print("Hello World!")

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

altcolor-0.0.4.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

altcolor-0.0.4-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file altcolor-0.0.4.tar.gz.

File metadata

  • Download URL: altcolor-0.0.4.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for altcolor-0.0.4.tar.gz
Algorithm Hash digest
SHA256 6d055fde6ba3bb34452b34d4f052fd3732cd08acc7e0de8e0f4be2043b29e492
MD5 2d3a45760c30a94f246a705759d2f6bb
BLAKE2b-256 83c52c267fa3f891e1eaa2007618f37dc9b63a19a07f17bd34f6394e5fed8522

See more details on using hashes here.

File details

Details for the file altcolor-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: altcolor-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for altcolor-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f4006a7d2ae20c4933adf1ab5932fff58676d0101eca0bbea24284eb7183dc20
MD5 070ccf07fb6f18fe1a1b23f1145ae3a8
BLAKE2b-256 f55d5d3208f1e6281b3a595c1fd5181bdcfda73af577473651e4acfc5b3e9503

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