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.- string: text to apply format.
- color: color by name like "red", by number, or RGB using list of numbers [0, 0, 0].
- bold: True or False.
- italic: True or False .
- underline: True or False.
- overline: True or False.
- doubleunderline: True or False.
- blink: "slow" or "rapid".
- background: color by name like "red", by number, or RGB using list of numbers [0, 0, 0].
- opaque: True or False.
-
find(color, exact)
- Searches by color.- color: name of color, integer, and returns list to RGB.
- exact: True or False, optional.
-
clear()
- return string to clear format colors. -
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.2.tar.gz
(18.0 kB
view hashes)
Built Distribution
Close
Hashes for terminal_in_colors-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d23866fa5eb400244f19849829aefbd7c7a777508a35b55cae1d890abb92eb53 |
|
MD5 | 9d367e4e3890b2ac85974bf6346b3eba |
|
BLAKE2b-256 | f124eeeef57a8c4d0a300e3cc99400af8f8a95bd8bdde09fdd50196c5e69a50f |