Skip to main content

A simple colouring package for making console programmes great again.

Project description

Colorain

A simple package that makes printing coloured text to the console a piece of cake.

Installation

pip install colorain

Usage

from colorain import ColoredText
txt = ColoredText('`f|y`Okay`f|n`, workin `f|c`fine`f|n`') # parses the colour tags and colour-codes the text as needed
print(txt) # prints the coloured text
print(txt.raw_text()) # strips off the colour tags

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

colorain-0.0.15.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

colorain-0.0.15-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file colorain-0.0.15.tar.gz.

File metadata

  • Download URL: colorain-0.0.15.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.8

File hashes

Hashes for colorain-0.0.15.tar.gz
Algorithm Hash digest
SHA256 fe98d7a917f0ebd496666a4886de78170c8502e27fff2c5b74afa86d40f9c703
MD5 6cc71fec04b68eff45e50841c7bcadfe
BLAKE2b-256 b2077d5f4e1fcff9e3c8d5f3186ca7f0e0d9fb3a22b97832029c6ff0619fdcff

See more details on using hashes here.

File details

Details for the file colorain-0.0.15-py3-none-any.whl.

File metadata

  • Download URL: colorain-0.0.15-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.8

File hashes

Hashes for colorain-0.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 72ed0259cc4780a88b6efcb3cac6d93d47ff510026906b33a57605ab8b44f13e
MD5 ec755a863a8bbbe6f00d262de235bf75
BLAKE2b-256 43455cc3018674a27ba6f2b6e2a5ab3bcab982bbd99eacc4bd321bfc1f2506ab

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