Skip to main content

Coltext - an alternative to colorama that can change the text color and background

Project description

What is Coltext?

Coltext - an alternative to colorama that can change the text color and background

Content

Install and Import

First, let's install this library. Go to cmd and write...

pip install Coltext

After that we open our python file and import the library...

from Coltext import Color, BackColor

Basic Concept

In this library you can change the text color to Red, Blue, Green, Purple, Cyan, Black and White. You can also reset the text color to standard. The same thing works with the background.
An example of how to change the text to Red and the background to Green

from Coltext import Color, BackColor
print(Color.Red + BackColor.Green + "Hello, World!" + Color.Clean + BackColor.Clean)

NOTE!!!
On Windows 10 and Windows 11 consoles, instead of changing the color, some code may appear at the very beginning. This is due to the fact that the Windows console cannot read ANSI code. But despite this, programs such as Visual Studio Code, PyCharm, as well as the custom Windows console "Termicom" can read this ANSI code and replace the color

Information on creator

filcher2011 == I've been a Python programmer for about 2 years now. He does small projects :)
Telegram-channel: https://t.me/filchercode
Financial support: https://www.donationalerts.com/r/filcher2011

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Coltext-1.0.tar.gz (2.1 kB view details)

Uploaded Source

File details

Details for the file Coltext-1.0.tar.gz.

File metadata

  • Download URL: Coltext-1.0.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for Coltext-1.0.tar.gz
Algorithm Hash digest
SHA256 dce0a53f8f41214ec07f9ff7ecb9ec731fbf6043749f9e8e0c7dbf90270429df
MD5 baf901fa95c6bee070db5a39c5c9e066
BLAKE2b-256 6296be521aba5ae6739a612488d27954223a7d2494ea9531e1f8150e8b2befab

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page