Skip to main content

No project description provided

Project description

CRPrint

A basic module used for colorizing console output.

The CRPrint module provides functions to colorize the console output. It includes functions to get color codes, print colored strings, and print colored lines.

  • clear_color(func): A decorator which clears the console color after execution.

  • colorize(color: tuple): A decorator which changes the color of the decorated function's output.

  • get_color(color:tuple): Returns a code that can be used to change print color.

  • color_print(text, color:tuple, print_value:bool=True, **kwargs): Prints a colored string. If print_value is True, it also prints the string without color.

  • print_line(length:int, color:tuple=None, title:str=''): Prints a line of underscores with a specified length and a title. If color is not provided, it uses the default color.

  • pretty_print(obj, indent=0, indent_increase=4, use_color=False, root=True, **kwargs): Prints an object neatly. If use_color is True, it also colors the string.

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

Terry-CRPrint-0.2.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

Terry_CRPrint-0.2.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file Terry-CRPrint-0.2.0.tar.gz.

File metadata

  • Download URL: Terry-CRPrint-0.2.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.3

File hashes

Hashes for Terry-CRPrint-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7d2c079bc12fb67dcc7523f41db325f82255af65712ff5910eb78f6e216adf72
MD5 6297edb9531e881013f129e848be4cff
BLAKE2b-256 4f4a3bb68297686c6f9e33a25c1596afaf7ff0a96df13f4f133b0f7a0212c4e7

See more details on using hashes here.

File details

Details for the file Terry_CRPrint-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: Terry_CRPrint-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.3

File hashes

Hashes for Terry_CRPrint-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 843c71668f481e4fb0cd1aef35e0be6a6077ffa45ea5931793b098bc8dc197f4
MD5 2294e954fdfb101a612b2948df4efc3e
BLAKE2b-256 ecf5e9bc66dabd455dbdc8b7a7e3f155cf3ae8733d504b12ab6f4b6d5ed7aacd

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