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.1.tar.gz
(17.8 kB
view hashes)
Built Distribution
Close
Hashes for terminal_in_colors-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2c4ae6d0d96bb13b646c7b659bf0f907d0741447a694854e25a74a5d97c86d3 |
|
MD5 | f40bf8571651236598a121613c54573a |
|
BLAKE2b-256 | e9cf3ae57834781e8bb5d93052c8af06e5ad8da7a9d9aadf1a9ff1a2c95e212c |