Skip to main content

A library to print colorful

Project description

This is just a simple library to print colorful using sys.stderr to write.

from colorful_logging import color_print

# color_print(
# text: str = your text
# color: str = 'red', 'blue', ...
# fmt: bool = True or False
# lvl: str -> it's just a simple naming when using the "fmt=True"
# )


# for example:
color_print(
    text='ali is good',
    color='cyan',
    fmt=True,
    lvl='ALI LEVEL'
)
# will produce (with colored text): 
# ALI LEVEL    24-02-06 18:49:15, File "where the color print executed", Line 1, in "the module", msg: ali is good


# here also you can use it without formatting the line: 
color_print('ali is good', 'bold')

To get specific color:

from colorful_logging import _get_color_

c = _get_color_("dark blue")
r = _get_color_("reset")

text = f"hello {c}Ali{}"

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

colorful_logging-0.5.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

colorful_logging-0.5-py3-none-any.whl (1.7 kB view details)

Uploaded Python 3

File details

Details for the file colorful_logging-0.5.tar.gz.

File metadata

  • Download URL: colorful_logging-0.5.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for colorful_logging-0.5.tar.gz
Algorithm Hash digest
SHA256 8ec99f86265f4cf9a252d0ed9454faed2750ea430f7f37a4a949539c006f79c1
MD5 4d660f019356798fd8c32b82c62e6523
BLAKE2b-256 f1fca8c0328ec4e99fc06537e36e96f83c8440ee2cd9ae4e968764e88d75a77b

See more details on using hashes here.

File details

Details for the file colorful_logging-0.5-py3-none-any.whl.

File metadata

  • Download URL: colorful_logging-0.5-py3-none-any.whl
  • Upload date:
  • Size: 1.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for colorful_logging-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e9a1e78cbf87660b04ecdc827f1bbc63f72af38dce5969cdf0a275704ec509f5
MD5 e1f43d6c301c01c0cbc251bebdd9b4a0
BLAKE2b-256 8d9d7bf5f362f3d7e3e45c9112d39ad99db45cca259b8bb013616cfaf051da03

See more details on using hashes here.

Supported by

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