Skip to main content

Fancy terminal message box renderer using Unicode box characters and ANSI styling

Project description

sysmess

Fancy terminal message box renderer using Unicode box characters and ANSI styling.

Installation & Building

  • Build the extension in-place:

    python3 setup.py build
    
  • (Optional) Install into your current environment:

    pip install .
    

Usage

import sysmess

msg = sysmess.fancy_box(
    "Hello, world!",
    title="Greeting",
    center=True,
    bold=True,
    italic=False,
)
print(msg)

# Measure the width of the box (including borders)
width = sysmess.measure_box_width("Hello, world!", title="Greeting")
print(width)

Examples

Once built (or installed), run the demonstration script to see sample outputs:

python3 examples.py

Testing

Run the unit tests using the included test runner:

python3 test.py

Continuous Integration

A GitHub Actions workflow is included at .github/workflows/ci.yml, which builds the extension, runs the tests, and executes the examples on each push or pull request to main.

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

sysmess-0.1.0.tar.gz (3.4 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: sysmess-0.1.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for sysmess-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4507dc0c11b603896c3f3e23db9a424d0b2238a947c95921400e6c6b6c8d240c
MD5 b7fc02a3da2b212d5c103cd379714ebd
BLAKE2b-256 dbaf78e2c0b34cc02eec55e534b8c9dfd4a75dcb6b71a4a65f6f4d9cd494f254

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