A package for print beautiful logs in console
Project description
Beautiful Console
installation :
install :
pip install beautiful-console
import :
from beautiful_console.beautiful_console import *
List of Functions :
- to_color()
- to_highlight()
- to_style()
defined colors :
black, red, green, yellow, blue, magenta, cyan, white
defined highlight colors :
black, red, green, yellow, blue, magenta, cyan, white
defined styles :
bold, italic, underline, underline_bold, overline,
strikethrough
to_color()
Returns colored text.
# only text-parameter and color-parameter must be filled (degree-parameter have default value).
print(to_color(
"text",
"color", # color of text
"degree" # intensity of text color <0 or 1>
))
to_highlight()
Returns highlighted text.
# only text-parameter must be filled (others have default value).
print(to_highlight(
"text",
"highlight_color", # color of background
"text_color", # color of text
"highlight_color_degree", # intensity of background color <0 or 1>
"text_color_degree" # intensity of text color <0 or 1>
))
to_style()
Returns styled text.
# only text-parameter and style-parameter must be filled (others have default value).
print(to_style(
"text",
"style", # style of text
"color", # color of text
"degree" # intensity of text color <0 or 1>
))
Tips :
Tip : some things may not work on some consoles.
send your feedbacks to : pourya90091@gmail.com
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
beautiful-console-0.3.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for beautiful_console-0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de71e28dc212e34f3f79856e5aa97e7b652f2c9dad675b4e816fa124b24547c0 |
|
MD5 | 3ecea38f96b8b434706336d78e664c82 |
|
BLAKE2b-256 | a323d97e8ecc9a311d04963a8b90b881b94b03fd91a0c10bf57ecc306400f988 |