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 hashes)

Uploaded Source

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