Skip to main content

`termstr` elevates terminal output with customizable color, style, and alignment options for text.

Project description

termstr

PyPI - Version PyPI - Python Version

termstr elevates terminal output with customizable color, style, and alignment options for text.


Table of Contents

Installation

pip install termstr

Quick Start

from termstr import Color, Div, Span

hello = Span("Hello").set_foreground(Color.BLUE).set_italic()
print(hello)

world = Span("World").set_foreground(Color.GREEN).set_underline()
print(world)

hello_world = Div().set_background(Color.MAGENTA).set_bold()
hello_world += hello + ", " + world + "!"
print(hello_world)

Output

License

termstr is distributed under the terms of the MIT license.

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

termstr-0.3.0.tar.gz (26.9 kB view details)

Uploaded Source

Built Distribution

termstr-0.3.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file termstr-0.3.0.tar.gz.

File metadata

  • Download URL: termstr-0.3.0.tar.gz
  • Upload date:
  • Size: 26.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for termstr-0.3.0.tar.gz
Algorithm Hash digest
SHA256 f16ea35dcf8dba3e3a73f8a72c33e679d65fb3780eaece0210d7a55969435ccf
MD5 49e908786f94810e2e08c8d511c40536
BLAKE2b-256 89bbb76dda32c85bb39c9dfd47ec5ff2396980388713f8727e88ca7a2be39cb2

See more details on using hashes here.

File details

Details for the file termstr-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: termstr-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for termstr-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 db1a5bd030f7142da8c499bcd0cb019d98f2edd92f81398907b7c844bf881093
MD5 2426414ad6ceb7197f816fd7deb8f2e0
BLAKE2b-256 84e62c5ee66685edcf3c6e50206422a1656c23920d9c9e4dfca9918fbdffe1dc

See more details on using hashes here.

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