Skip to main content

Python Colorful Print

✅Build And Test PyPI version PyPI
CodeFactor PyPI

Install

pip install colorful_print

Usage

import sys
from colorful_print import cp

a = [1, "a", 2.345]
b = (4, "b", 5.678)
c = {"John": "Doe", "age": 20}

cp.black("This is Black", a, b, c)
cp.bright_black("This is Bright Black", a, b, c)
cp.red("This is Red", a, b, c)
cp.bright_red("This is Bright Red", a, b, c)
cp.green("This is Green", a, b, c)
cp.bright_green("This is Bright Green", a, b, c)
cp.yellow("This is Yellow", a, b, c)
cp.yellow("This is Bright Yellow", a, b, c)
cp.blue("This is Blue", a, b, c)
cp.bright_blue("This is Bright Blue", a, b, c)
cp.magenta("This is Magenta", a, b, c)
cp.bright_magenta("This is Bright Magenta", a, b, c)
cp.cyan("This is Cyan", a, b, c)
cp.bright_cyan("This is Bright Cyan", a, b, c)
cp.white("This is White", a, b, c)
cp.bright_white("This is Bright White", a, b, c)
sys.stdout.write("\n")

cp.red("This is Red", a, b, c)
cp.green("This is Bold Green", a, b, c, bold=True)
cp.yellow("This is Bold Italic Yellow", a, b, c, bold=True, italic=True)
cp.blue("This is Bold Italic Underline Blue", a, b, c, bold=True, italic=True, underline=True)
cp.magenta(
    "This is Bold Italic Underline StrikeOut Magenta",
    a,
    b,
    c,
    bold=True,
    italic=True,
    underline=True,
    strike_out=True,
)
cp.cyan(
    "This is Bold Italic Underline Reverse Cyan", a, b, c, bold=True, italic=True, underline=True, reverse=True
)
cp.white(
    "This is Bold Italic Underline StrikeOut Reverse White",
    a,
    b,
    c,
    bold=True,
    italic=True,
    underline=True,
    strike_out=True,
    reverse=True,
)
sys.stdout.write("\n")

cp.black("This is Black", a, b, c, sep="\t\t", end="@@ \n\n", flush=True)
cp.red("This is Red", a, b, c, sep="\t\t", end="@@ \n\n", flush=True)
cp.green("This is Green", a, b, c, sep="\t\t", end="@@ \n\n", flush=True)

Metadata

Release files for colorful-print 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for colorful-print 1.1.0
File Size Uploaded
colorful_print-1.1.0.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for colorful-print 1.1.0
File Interpreter ABI Platform
colorful_print-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.1 kB

Release files / colorful_print-1.1.0.tar.gz

Download URL colorful_print-1.1.0.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7badaf4b64ce3c7cfd7940f0a0376cc608126b9580181eb431c40ba521fa87d2
BLAKE2b-256 checksum
How to use checksums
d58e78992fd9ec32332594c62ca760512e2b7bd7d056ae49e9f1b8c085a813ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.13.14 Darwin/24.6.0

Release files / colorful_print-1.1.0-py3-none-any.whl

Download URL colorful_print-1.1.0-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1609ab5df41013c7385c10804c0068c5e5ff61d5daff60b9552b48f0e63b4143
BLAKE2b-256 checksum
How to use checksums
dad0e965a5e343126355d1ab560b0e3e9ce9a798e73eb6ede0f4dc442d370d58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.13.14 Darwin/24.6.0

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.0

2 release files

0.1.0

2 release files

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page