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

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.3.tar.gz (3.4 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.3-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: altcolor-0.0.3.tar.gz
  • Upload date:
  • Size: 3.4 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.3.tar.gz
Algorithm Hash digest
SHA256 34576c143d1faad7dc1a0f262a6d316e43acc9c93e9658151d368700383cd52c
MD5 375a8f24ec756d145e92d338124ab0a2
BLAKE2b-256 e4c3190151c7b2dcbe3b4c70700590e00b6769e5d53837e737ef2a279a2c5b91

See more details on using hashes here.

File details

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

File metadata

  • Download URL: altcolor-0.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 dece97ba08deb9a4de393a82cc61f75d1a9b245286956d283ea436b22986a4a6
MD5 3174eb27dbb116b48f90d4496c25831d
BLAKE2b-256 c220c14ba396b08f7e7124c204f3f3932396369b22e74f405149fa22c08792ef

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