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
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
NoneRelease 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.1.tar.gz
(8.2 kB
view hashes)
Built Distribution
Close
Hashes for string_color-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46993689de08d735e8c35add9f6a1dc1f52680c9e3c0f76e374d6d4abd09ea52 |
|
MD5 | ae3f5d6cfc0d045b7dd8ef113e7f7cdb |
|
BLAKE2b-256 | 2243aa4b435a1894cba50e4172907fabf257bab7dbae5081b846f99301195aa2 |