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.1.tar.gz (2.4 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.1-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: printcolorpt-0.1.1.tar.gz
  • Upload date:
  • Size: 2.4 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.1.tar.gz
Algorithm Hash digest
SHA256 d14a14bcbdf986a99062957ed35e0272057ba68d140e3275f50d9f1367ede1ab
MD5 db290c2e009ada7420c14db2afb08d8c
BLAKE2b-256 11c049b28e69f4ac77853d343fb7302ec432ebaf24aad71054236f9e72b9f0e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: printcolorpt-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 69472b5b0150ed2aa294ef231c743eeb0e881b21c6a5aef3be0025fca44e251e
MD5 e331bcbc41ed321d4dedef112c5d129f
BLAKE2b-256 7db799de62dd18f78485792e08b1ca57cb9a4a907780941539d2148ec5d32f0f

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