Skip to main content

A simple, lightweight function to print a stylized, colored separator line in the terminal.

Project description

ts

A simple, lightweight utility function designed to print clean, stylized, and colored separator lines directly in your terminal. Perfect for organizing output in data analysis scripts, CLI tools, or development logs.

✨ Features

  • Simple Syntax: One function call to print a clean line.
  • Optional Title: Centers a word within the separator line.
  • Color Support: Supports standard terminal colors like green, blue, red, and yellow.
  • Zero Dependencies: Relies only on built-in Python features (ANSI colors).

⬇️ Installation

You can install termseparator globally using pip:

pip install termseparator


🚀 Usage
The function accepts an optional title word (word) and an optional color string (color).

Python

import termseparator as ts


# 1. Simple, default usage (green solid line)
ts.s()

# 2. Separator with a centered title (default green)
ts.s("DATA LOADING COMPLETE")

# 3. Separator with a different color
ts.s("PROCESSING DATA", color="blue")

# 4. Solid red line
ts.s(color="red")

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

termseparator-0.1.2.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

termseparator-0.1.2-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file termseparator-0.1.2.tar.gz.

File metadata

  • Download URL: termseparator-0.1.2.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for termseparator-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c36ca3c481782ac175964611bd37f78b9be16b39353c13ce8b4a2bb77dfe71b5
MD5 3f87003d99c5cccbb88a614545f68794
BLAKE2b-256 e887908ffca569b595b4b68c7024fb87a43d4a99d8e1b6d59cd1c27d4cbb9ec3

See more details on using hashes here.

File details

Details for the file termseparator-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: termseparator-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for termseparator-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7121eb5c6876b1af8c0d16509929339689dfffbd36f2625c4b502d24cf26df3f
MD5 60bcaa9e484f9b246c454cd0389825c4
BLAKE2b-256 053cee2e0686a6aaa479c5fbe2d8eba373f700281e0611553241beb7fe1e170b

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