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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: termstr-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 e7a1edba8b2a0629e98c346abe3073f4021cbeaf4dac21055a17dff462f48da4
MD5 ad67aeb84f6bf639a2e51ea3cba044e2
BLAKE2b-256 df8f485b649873ba44d51d271daaabc339cf501917900459e3d34c2f03e81f4f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: termstr-0.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bd7f4245d66181c61bbc6b8f7a920a6fa9681cfe9e054e38175f3b59ddcef7cf
MD5 aa85e2801ce65ea205a3e95ec52d340f
BLAKE2b-256 1d7ee1e5c5aace859302f6240cb34e84a0310940c7e38a20a0f83e2b9b7cf690

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