Simple Python package to print & show colored text in the terminal.
Project description
Coloors
A simple Python package to print/show colored text in the terminal. Developed it while doing some side projects.
Installation
pip install coloors
Usage
from coloors import printp, printb, printc, printg, printy, printr, printu, printbld
from coloors import r, b, g, p, c, bld, u, ye
printp("This is purple/rose!")
printb("This is blue!")
printc("This is cyan!")
printg("This is green!")
printy("This is yellow!")
printr("This is red!")
printu("This is underlined!")
printbld("This is bold!")
red_text = r("This text will be red.")
blue_text = b("This text will be blue.")
green_text = g("This text will be green.")
purple_text = p("This text will be purple/rose.")
cyan_text = c("This text will be cyan.")
bold_text = bld("This text will be bold.")
underline_text = u("This text will be underlined.")
yellow_text = ye("This text will be yellow.")
print(red_text)
print(blue_text)
print(green_text)
print(purple_text)
print(cyan_text)
print(bold_text)
print(underline_text)
print(yellow_text)
Functions
The package provides the following functions for printing colored text:
printp(s): Prints the stringsin purple or rose (depends on your color blindness).printb(s): Prints the stringsin blue.printc(s): Prints the stringsin cyan.printg(s): Prints the stringsin green.printy(s): Prints the stringsin yellow.printr(s): Prints the stringsin red.printu(s): Prints the stringswith underline.printbld(s): Prints the stringsin bold.
It also provides functions to return colored strings without immediately printing them:
r(s): Returns the stringsin red.b(s): Returns the stringsin blue.g(s): Returns the stringsin green.p(s): Returns the stringsin purple.c(s): Returns the stringsin cyan.bld(s): Returns the stringsin bold.u(s): Returns the stringswith underline.ye(s): Returns the stringsin yellow.
Dependencies
Python, haha.
License
GNU GENERAL PUBLIC LICENSE
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file coloors-1.0.0.tar.gz.
File metadata
- Download URL: coloors-1.0.0.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e962698761ae5fbae2fd511021aa3d91c2de1656859cecb0bf95c045a62b670
|
|
| MD5 |
cab74d008dd1cf1ccd49c8316faea659
|
|
| BLAKE2b-256 |
50671e71487dfc96425392e60744dc4140f9d005b1fa2c5d9e6f7efd93f8a55a
|
File details
Details for the file coloors-1.0.0-py3-none-any.whl.
File metadata
- Download URL: coloors-1.0.0-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d310e18465c9dd739883eabacbdb55a9fd91776032598fbeb59b85b1c664992c
|
|
| MD5 |
bef885c7c9f25364847e0dc23dc7500d
|
|
| BLAKE2b-256 |
36f69eed6f71b46fcfb69e5e4721813fb5b58ab6a9f5e9a437f79d9aaa128329
|