Skip to main content

Tiny ANSI color print helpers for Python

Project description

printcolorpt

Tiny ANSI color print helpers for Python.

printR(*args, **kwargs) is equvelant to print(*args, **kwargs) except the color of text.

print((RED("hello") + YELLOW("world!")) is equvelant to print("hello" + "world!") except the color of text(s).

you can use the first 5 functions for entire colorization of the sentence: printR(red), printG(green), printY(yellow), printB(blue), and printD(dark gray - short for "Debug").

you can use the rest 5 functions for partial colorization of the sentence: RED(red), GREEN(green), YELLOW(yellow), BLUE(blue), and DEBUG(dark gray - short for "Debug").

usage

from printcolorpt import printR, printG, printY, printB, printD
from printcolorpt import RED, YELLOW

printR("this is red")
printG("this is green")
printY("this is yellow")
printB("this is blue")
printD("this is dark gray")

print(RED("this is red. ") + YELLOW("this is yellow."))

Install

pip install printcolorpt

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

printcolorpt-0.1.0.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.

printcolorpt-0.1.0-py3-none-any.whl (1.7 kB view details)

Uploaded Python 3

File details

Details for the file printcolorpt-0.1.0.tar.gz.

File metadata

  • Download URL: printcolorpt-0.1.0.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for printcolorpt-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2d38cc5d80c55cb20edc4699cbd9980f12b91c6823b682ce86786a4c7d6a6a17
MD5 64af86eb831b480cb7e4b4c7ff9bc358
BLAKE2b-256 e87a82b681c629fbdd87ffa894be63ee39d7b013f4eacbdb7c98d143b6163c16

See more details on using hashes here.

File details

Details for the file printcolorpt-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: printcolorpt-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for printcolorpt-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 60f92a7121d1fd85b738a6028f296062d7913563f3d92489dd32c72a15cd666e
MD5 c572a7e025ccf7a8e8b51df01967dbf8
BLAKE2b-256 aea20dd2cd85b74267a1234cea1430c875f0b79932be234e399001638ac32562

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