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' ('https://pypi.org/project/colorama/') for these]:
"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
Release history Release notifications | RSS feed
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.2.tar.gz
(2.7 kB
view details)
Built Distribution
File details
Details for the file altcolor-0.0.2.tar.gz
.
File metadata
- Download URL: altcolor-0.0.2.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c8794e37f3fa4567323c2cea622a2e0e4c57c28487699b15e2f6496fc35842a |
|
MD5 | 628a0ff3a9fea39ff88c442d9f2e427e |
|
BLAKE2b-256 | ca6c461298cdf48f5d9ab0de682236ec6f51e3e1362dac0ddc074a69d2149f38 |
File details
Details for the file altcolor-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: altcolor-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8874c1b8faedaff9d582f0dc0427226c9ad75fe182b225f5f4829e8ba89715e |
|
MD5 | c2b09925280278b0be92b9f7c75d7749 |
|
BLAKE2b-256 | e795d93946ddb2330b5f172eab55da137d84382744333000c853662e5081489c |