Skip to main content

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

Metadata

Release files for trmnl-colors 4.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for trmnl-colors 4.0.9
File Size Uploaded
trmnl-colors-4.0.9.tar.gz 5.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for trmnl-colors 4.0.9
File Interpreter ABI Platform
trmnl_colors-4.0.9-py3-none-any.whl Python 3 none any Details

Total release size: 11.0 kB

Release files / trmnl-colors-4.0.9.tar.gz

Download URL trmnl-colors-4.0.9.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8d41c9909be0d97f29356f5745b5093db046f912a2670342280d7c08b4ef2891
BLAKE2b-256 checksum
How to use checksums
ab56c6abd94ab413d57df236f31c86d0a90bf05fd06a3e2b1eca81cc7eb16b2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / trmnl_colors-4.0.9-py3-none-any.whl

Download URL trmnl_colors-4.0.9-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
39839063b0fd484d8de729a29ad476447756c4015d9307f923c6a8c0d509dba6
BLAKE2b-256 checksum
How to use checksums
00da8b7fba83bfd3a1be44f0f0f26cbadd84ef7dcf3c3333b8a1e36310b4c94f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release history Release notifications | RSS feed

This release

4.0.9 This release

2 release files

4.0.8

2 release files

4.0.6

2 release files

4.0.5

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page