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!
Explore & stay Creative
by: Idris Vohra
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file trmnl-colors-4.0.9.tar.gz.
File metadata
- Download URL: trmnl-colors-4.0.9.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d41c9909be0d97f29356f5745b5093db046f912a2670342280d7c08b4ef2891
|
|
| MD5 |
91be1ca226ceaec84ffb24674ac5e663
|
|
| BLAKE2b-256 |
ab56c6abd94ab413d57df236f31c86d0a90bf05fd06a3e2b1eca81cc7eb16b2c
|
File details
Details for the file trmnl_colors-4.0.9-py3-none-any.whl.
File metadata
- Download URL: trmnl_colors-4.0.9-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39839063b0fd484d8de729a29ad476447756c4015d9307f923c6a8c0d509dba6
|
|
| MD5 |
2de18627c5651a696eab5a8c2d6a72c5
|
|
| BLAKE2b-256 |
00da8b7fba83bfd3a1be44f0f0f26cbadd84ef7dcf3c3333b8a1e36310b4c94f
|