Skip to main content

Sets text colors and effects in console

Project description

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

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

colorant-1.0.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

colorant-1.0.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file colorant-1.0.0.tar.gz.

File metadata

  • Download URL: colorant-1.0.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for colorant-1.0.0.tar.gz
Algorithm Hash digest
SHA256 bddc014a34201f501b7ebc803c529fe3959c1d827ee9edc4f319b58fbb3f7a7d
MD5 13f3ca9eb6d00308b1877a7b383a7e63
BLAKE2b-256 114a56a21d643fd175e8d9c3b9332ba4e28d6dcb73d984204f39f8d8e9ada56e

See more details on using hashes here.

File details

Details for the file colorant-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: colorant-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for colorant-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b63e193fb1c89c278d4dd6daa3ee7572ba38052744e1a1f1f541cd13f2844b8a
MD5 5b2c5e7996464155da736746b0210a96
BLAKE2b-256 0751695b618d7002882470cbb0e5d9e1c28896846fbdd9b5f418f6f653dcfc56

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