Skip to main content

No project description provided

Project description

termstr

This project originated from a submodule of lifegame-tui, primarily used for coloring, styling, and aligning console characters.

PyPI - Version PyPI - Python Version


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.2.0.tar.gz (26.9 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for termstr-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a8f9ff633d064e51819bbd30ddbc95bf50ea22d70e635f51587dbb49ad628d7e
MD5 cd2744ba5994ad2eaadc45849df47105
BLAKE2b-256 4d50b6bb23e4727cff81bf9ff9e1b8ca5d251bb14097fcf85d08cf918b8941f1

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for termstr-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 48bc22e233af112c77dc5e0d7e051891faacd0a566fe21268cb4b657642acf1f
MD5 a4e8145a2e6420f4a9db882131abaa25
BLAKE2b-256 03355a055365a03d999456dd192fa1091be5c416645cd248775f27645b18418d

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