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

Update v0.1.0

5. Draw (draw)

rom TermARTdeving import *

print(draw(text="TermART",font="3d-ascii"))
# Set text and font
'''
 _________  _______   ________  _____ ______   ________  ________  _________   
|\___   ___\\  ___ \ |\   __  \|\   _ \  _   \|\   __  \|\   __  \|\___   ___\
\|___ \  \_\ \   __/|\ \  \|\  \ \  \\\__\ \  \ \  \|\  \ \  \|\  \|___ \  \_|
     \ \  \ \ \  \_|/_\ \   _  _\ \  \\|__| \  \ \   __  \ \   _  _\   \ \  \
      \ \  \ \ \  \_|\ \ \  \\  \\ \  \    \ \  \ \  \ \  \ \  \\  \|   \ \  \
       \ \__\ \ \_______\ \__\\ _\\ \__\    \ \__\ \__\ \__\ \__\\ _\    \ \__\
        \|__|  \|_______|\|__|\|__|\|__|     \|__|\|__|\|__|\|__|\|__|    \|__|
'''

6. Draw helper (draw_help)

Show you all font

from TermART import *

print(draw_help(0.5,"EXEMPLE"))
#set delay 0.5 sec and text "EXEMPLE"

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.1.1.tar.gz (3.4 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.1.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for termart-0.1.1.tar.gz
Algorithm Hash digest
SHA256 10c20334191f2cfad2f45162199200c731726c95ea2983567278907d2dd76be3
MD5 2e5b80473ed484de2aa124fff85e293d
BLAKE2b-256 cc1a087f1c25cca17bfb2cf47e131031aebfd29a756098efa86ca7e2d23946aa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: termart-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.7 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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ca0df687da10d811018fb18212810c4e66d6510cba2fc6fe6be0706bf19ca415
MD5 b663872d0b434f3a1d3e900972fe4357
BLAKE2b-256 8a877409265090db19a9ec283b3988bef058cf90bb7735e2a29f7def977b531f

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