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.3.tar.gz
(18.0 kB
view details)
Built Distribution
File details
Details for the file terminal_in_colors-0.1.3.tar.gz
.
File metadata
- Download URL: terminal_in_colors-0.1.3.tar.gz
- Upload date:
- Size: 18.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.6 Linux/6.4.14-200.fc38.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1cccc4f4772df3467a9b8f486b5e0d023c1e8c4ad72036b9d6df16fca9237e3 |
|
MD5 | dcdea729b743e437c56bda6c12681806 |
|
BLAKE2b-256 | 8f786d81badf8fd0b3901f49900c53812e750e3245305813b80828c4fc972310 |
File details
Details for the file terminal_in_colors-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: terminal_in_colors-0.1.3-py3-none-any.whl
- Upload date:
- Size: 18.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.6 Linux/6.4.14-200.fc38.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb4af988ba0a2d9ce44f3c6b51c4bb4c9b04758d77bb3edaa44d03ad37670316 |
|
MD5 | 90dd92a539728577dc4d52fcec9d2706 |
|
BLAKE2b-256 | b4ea6606584e9740deba446bdaba4fcfc1a991fb2d43261e3941c0c212e678d5 |