Your terminal in colors :D
Project description
terminal-in-colors
Give color to your terminal, using 256 colors or RGB, use bold, italic, underline, among others, in a simple and uncomplicated way.
Instalation
You can install simply using a command, thank PyPi.
$ pip install termina-in-colors
Usage
from terminal_in_color.ColorTerminal import ColorTerminal
string = "Hi"
c = ColorTerminal()
print(c.paint(string, color="red", blink="slow"))
Methods Available
paint(string, color, bold, italic, underline, overline, doubleunderline, blink, background, opaque)
- Formats the string using the available options, returns a string.find(color, exact)
- Searches by color name, integer, and returns list of matches, optionally, searches for exact matches or returns None.clear()
- Clear the string formatting.print_all()
- Print all 256 colors.`
Documentation
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
terminal_in_colors-0.1.0.tar.gz
(17.8 kB
view hashes)
Built Distribution
Close
Hashes for terminal_in_colors-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e137fed5db34b8918dbc85f020fe99bbafe38a617620c3d823e55e61ea83a1f |
|
MD5 | 93ffa15fba8e768c65333a05cb5ef3c3 |
|
BLAKE2b-256 | 2bedea1371ca9455b6c5101aebac47e72e0657188be91929d5e9e444a24602f1 |