Skip to main content

Colorant

Intro

  • Sets text colors and effects in console.

Installation

pip install colorant

Features

  • Foreground and background colors
    • Black
    • Red
    • Green
    • Yellow
    • Blue
    • Magenta
    • Cyan
    • White
    • Bright black
    • Bright red
    • Bright green
    • Bright yellow
    • Bright blue
    • Bright magenta
    • Bright cyan
    • Bright white
  • Decorations
    • Bold
    • Underline
    • Reversed
  • Function chaining
    • e.g. Colorant().bg_lt_green().black('OK').flush() prints OK in black on a light green background.
    • tests/demo.py contains more example usages.

demo

Reference

  1. Build your own Command Line with ANSI escape codes
  2. ANSI escape code
  3. Colors In Terminal
  4. STY

Release files for colorant 1.0.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 colorant 1.0.0
File Size Uploaded
colorant-1.0.0.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for colorant 1.0.0
File Interpreter ABI Platform
colorant-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.4 kB

Release files / colorant-1.0.0.tar.gz

Download URL colorant-1.0.0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
bddc014a34201f501b7ebc803c529fe3959c1d827ee9edc4f319b58fbb3f7a7d
BLAKE2b-256 checksum
How to use checksums
114a56a21d643fd175e8d9c3b9332ba4e28d6dcb73d984204f39f8d8e9ada56e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release files / colorant-1.0.0-py3-none-any.whl

Download URL colorant-1.0.0-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b63e193fb1c89c278d4dd6daa3ee7572ba38052744e1a1f1f541cd13f2844b8a
BLAKE2b-256 checksum
How to use checksums
0751695b618d7002882470cbb0e5d9e1c28896846fbdd9b5f418f6f653dcfc56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

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