Skip to main content

A cool terminal formatting tool

Project description

TermART

TermART is a Python module that simplifies the use of ANSI escape codes to style your terminal output. Add colors, effects easily with clean and readable functions. Perfect for CLI tools, TUI apps, or just making your terminal scripts look cooler!

Function

1. Reset

Reset your text colour, style to default

from TermART import *

reset("Font_style")       # Reset all font style
reset("Bold")             # Reset only Bold font style
reset("Underline")        # Reset only Underline font style
reset("Italic")           # Reset only Italic font style
reset("tc")               # Reset text colour
reset("bg")               # Reset Background colour 
reset()                   # Reset every style, colour, bg colour

2. Text colours (tc & tc_rgb)

Changs your text colour :

from TermART import *

#tc()
print(tc("RED") + "This is red text" + reset("tc")) #Set red colour by "RED","RED","GREEN","BLUE","YELLOW","MAGENTA","CYAN","WHITE" and "BLACK"

#tc_rgb(r,g,b)
print(tc_rgb(255,255,255) + "This is 255,255,255 colour text" + reset("tc")) #Set colour by rgb

3. Background colours (bg & bg_rgb)

Changs your text background colour :

from TermART import *

#bg()
print(bg("RED") + "This is red text background" + reset("bg")) #Set red background colour by "RED","RED","GREEN","BLUE","YELLOW","MAGENTA","CYAN","WHITE" and "BLACK"

#bg_rgb(r,g,b)
print(bg_rgb(255,255,255) + "This is 255,255,255 colour text background" + reset("bg")) #Set background colour by rgb

4. Font styles (fs)

Chang your Font style:

Options

  • Bold , Underline , Reversed and Italic
from TermART import *

print(fs("Bold") + "Hi") # Set Bold style
# Options Bold , Underline , Reversed and Italic

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

termart-0.0.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

termart-0.0.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file termart-0.0.1.tar.gz.

File metadata

  • Download URL: termart-0.0.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for termart-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d60f90dc9ac81f3b369dfe6077598bd09eeca8f48cff27881c7cd502210b30a0
MD5 653a6105f5b565e0c77064db044ffd80
BLAKE2b-256 65775215f75a6420466c4b7a220faaf5416f19205c5cd815cc24e586ec17e465

See more details on using hashes here.

File details

Details for the file termart-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: termart-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for termart-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8978d9ab0dd392b8f9a9a371a727cd680507300c022a9e6b247130d773bd2313
MD5 3d850cc67df9bf304dd646e5421b255a
BLAKE2b-256 78c26c10752ad0d694aaa661022db7b6c4cf54e24ef27b9b4b19ec6028e75d18

See more details on using hashes here.

Supported by

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