Skip to main content

A python library for printing framed text to the terminal.

Project description

This is yet another python library for creating frames around your terminal output.

It creates a frame around text, wrapping the text to fit into the frame.

The implementation follows clean code principles such as single responsibility principle, and dependency injection.

Install

pip install hemline

Documentation

See jnthnhrr.github.io/python-hemline

Use

from hemline import Frame

frame = Frame()
text = "This is some text"
framed = frame.format(text)

You will find more detailed examples in the documentation.

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

hemline-1.1.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

hemline-1.1.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file hemline-1.1.0.tar.gz.

File metadata

  • Download URL: hemline-1.1.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.8.0-49-generic

File hashes

Hashes for hemline-1.1.0.tar.gz
Algorithm Hash digest
SHA256 6978abb88c8f96b0380188bfddb03ba33798791092146d11604d8131e7a5d8e1
MD5 a51297c49eaa6e9bfa11eb6230fb578a
BLAKE2b-256 9c3a41a16a4ded6a83702aed9fd9f367ae58fc3fab768ae1955f5a2c76bd79c6

See more details on using hashes here.

File details

Details for the file hemline-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: hemline-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.8.0-49-generic

File hashes

Hashes for hemline-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b089216a0e6ece80c9c12c07c4e016550defa4fad8cdf59cbd43b6ed549a1fb1
MD5 2317f04cb5e50e105de77b55dfb57f0f
BLAKE2b-256 a8ab678a76b654f26384bd82ac7e3db2d23a9284276b9bcbf5c4d038e74464f1

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