Skip to main content

Colors, text formats, decorations and much more for TERMINAL

Project description

trmnl_colors v-4.0.8

Add colors to the static WOrLd!

This module is made to colorize the output of terminal when the code runs on command line, With that there are functions for adding basic text colors (Total 10 including invisible) and or text formats such as Bold, Italics, Underline, Light or Strike-through to your code.

But wait there is more! use background colors, filled Variants which can be accessed by calling their specific name and 'Bg' postfix as in background. Here is an example describing with use case:

from trmnl_colors import *
blueBg()
print("Hello")
reset()

Latest Updates:

Introducing constants to make your life more easier:

Use case for constants

from trmnl_colors.constants import *

print(RedBold + "Hello" + GreenBold + " World!", end="")

print(RESET,end="")

Use case for functions

from trmnl_colors.functions import *
blueBg()
print("Hello")
white()
from trmnl_colors.functions import *
yellowBold()
print("Hello") # After every color call remember to call the reset function.
# Outputs Hello in yellow color in Bold text
white()
  • There are also filled color variants in which the font color and the background color match each other making them viable for specific type of color operations.

  • There is a special function called white() which is basically the default white so that the color function gets reset it is recommended to use this function at the end to maintain the color of the terminal.

  • PS. if you want to create blocks of colors for decoration purposes use filled variants e.g. whiteFilled()

Terminal Application Screenshots with trmnl_colors:

Create Terminal programs such as the below examples. Only your imagination and python skills are a limit!

Screenshots Screenshots

Explore & stay Creative

by: Idris Vohra

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

trmnl-colors-4.0.9.tar.gz (5.0 kB view hashes)

Uploaded Source

Built Distribution

trmnl_colors-4.0.9-py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 3

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