just another mod to print strings in 256 colors in the terminal.
Project description
string-color
string-color is just another python module for coloring strings in print statements.
Installation
$ pip install string-color
CLI Usage
$ string-color
display a list of all 256 colors
$ string-color yellow
show color info for the color yellow
$ string-color "#ff0000"
show color info for the hex value #ff0000
$ string-color *grey*
show all colors with "grey" in the name. also works with "grey*" and "*grey"
Python Module Usage
from stringcolor import cs
# a few examples without background colors.
# for color names see CLI usage above.
print(cs("here we go", "orchid"))
print(cs("away to space!", "DeepPink3"))
print(cs("final fantasy", "#ffff87"))
# yellow text with a red background.
# color names, hex values, and ansi numbers will work.
print(cs("warning!", "yellow", "#ff0000"))
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
string-color-0.1.5.tar.gz
(8.5 kB
view hashes)
Built Distribution
Close
Hashes for string_color-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49f44c8d6c60d8b7712631d7411c8a0ffd2de3097ce91b8633de8e0e6d29cb1a |
|
MD5 | a599eb83dbbc635d17376c1b2a6b5dcc |
|
BLAKE2b-256 | b5e852687779d0a381a688ef5a8b5dc1c06d5d2e2a387b7ebe8282be6453ba5b |