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 equivalent to print(*args, **kwargs) except the color of text.

print((RED("hello") + YELLOW("world!")) is equivalent 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 pt import *


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.3.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.3-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: printcolorpt-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 f4e1fd64b0a4b129af576bf403b13d91e90c42963fe55e55dc143addaac7d2af
MD5 af0512ec6402deee0c39d704ad518b69
BLAKE2b-256 64de8c440b34f163f1ec892e76ccc2135d7d236327823e957bfc11e66c808803

See more details on using hashes here.

File details

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

File metadata

  • Download URL: printcolorpt-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 2.6 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 36bb7f9f9211451edb3e5fcca36114e97e1c19ac414d8243f2e4ed87e679d770
MD5 ae45d2f7c66f070901a9a3d559e65792
BLAKE2b-256 15a085d60b19722fbabe5a1ff13d8b7d380278adaa9e66c155780ed260bc25aa

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