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.1.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.1-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: termseparator-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 33dacb1e948812a20f536e28da35063704e9a287e472290c1e973c211be95214
MD5 04a3ff136dd0ab1de96c623395994c51
BLAKE2b-256 7f1deeb12bb241f820ee7129fbab9d18e76412f8f23a42f18dd804c2eb546d30

See more details on using hashes here.

File details

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

File metadata

  • Download URL: termseparator-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d603c29e7505ab8479df649c0ee16f4db9d5e0d61341e1d3d10099ff8a8a073d
MD5 7898d8b5ae71449939fe06a66fccb969
BLAKE2b-256 a44f7643df216f9ec7501fb9dd7fd79922ee33c46a2a1e69d594bf039c60b6eb

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