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_highlight(
"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.
Things that may not work on all consoles :
- "underline_bold" style
- "underline_bold" bolds under line of text (not text, just under line of text).
- setting background color and text color together.
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.2.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for beautiful_console-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d45f79c58eb276bf9663282966721d6ee6e534a0a8b7bd29142b245d8debabbf |
|
MD5 | 22cd440f392db42334cef9e7eb2ea8ae |
|
BLAKE2b-256 | 74c16b0eb369d1ee588ed9e7088c12c52203f687ff2fc734e25033bf063bfc5d |