Skip to main content

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)

Uploaded Source

Built Distribution

beautiful_console-0.3-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page