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

Colorain

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.14.tar.gz (2.5 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.14-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: colorain-0.0.14.tar.gz
  • Upload date:
  • Size: 2.5 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.14.tar.gz
Algorithm Hash digest
SHA256 433a566d58dff738b636d7610aed4ceb5c0479e9af1df4cc13377fce5ba36682
MD5 aace1e62dfb53ccc01fab9c3ea781015
BLAKE2b-256 9ee0d51cc7d353c561580c28d23e9f789a850658594287cd907e7cc407f0f63c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: colorain-0.0.14-py3-none-any.whl
  • Upload date:
  • Size: 3.6 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.14-py3-none-any.whl
Algorithm Hash digest
SHA256 12c2fe12733ea479c375ce2ee426c2631bf91ddfd8affe4037eb70b422346c08
MD5 7fb2dea3258e465f4f40013eb3ef3c8a
BLAKE2b-256 e523af3065bc01bf3e4683a262d8a07ad762dbc3e926ee3175000c6859856c33

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