Skip to main content

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

Project description

termseparator

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

# 1. Simple, default usage (green solid line)
termseparator.separator()

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

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

# 4. Solid red line
termseparator.separator(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.0.tar.gz (2.6 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.0-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: termseparator-0.1.0.tar.gz
  • Upload date:
  • Size: 2.6 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.0.tar.gz
Algorithm Hash digest
SHA256 c1356749ca3ed74d9f97c1fe935c5dc96794a198a9f1b931c6868d48c709831f
MD5 eb4bdb7fec13355ab8db5a63f8fd149b
BLAKE2b-256 a8fd2e0291236273e62864a6c162a94c5db48e243ac73f23cf9250dbbdbc7614

See more details on using hashes here.

File details

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

File metadata

  • Download URL: termseparator-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.5 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a2b1bb876561836ed1a811a405b0928c88e677f6dc60fe36c9a54e25ec16e949
MD5 eb5331f338fe8f61a61dbafad868545f
BLAKE2b-256 7a28f296ce63fdd0e44d8f7a4cb8599aaa2c98da0954dbd68216e263359a0af4

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