Skip to main content

A simple CLI utility for generating formatted text headers with borders and boxes.

Reason this release was yanked:

This version is redundant as the source code is identical with `hfmt-cli=0.1.1`

Project description

hfmt-cli

GitHub top language

A simple CLI utility for generating formatted text headers with borders and boxes.

📦 Requirements

  • Python >= 3.9

🛠 Usage

Run with a positional argument:

$ hfmt "project title"
################################## project title ###################################

Run with flags:

$ hfmt --head "build complete" --style multi --char "=" --width 60 --upper --align left
============================================================
= BUILD COMPLETE 
============================================================
$ hfmt --border-only --width 50
##################################################

Run with box mode:

$ hfmt --title --width auto --box double "welcome back"
╔══════════════╗
║ Welcome Back ║
╚══════════════╝

⚙️ Options

hfmt-cli supports the following value flags:

Flag Description Default
head (positional) Header text
-H, --head Header text (alternative flag form)
-s, --style Border style (single, multi) single
-c, --char Character to use for the border #
-w, --width Width of the rows 84 or auto
-a, --align Header justification center or left
-b, --box Surround header by a box (overrides other flags) none

hfmt-cli supports the following value toggles:

Toggle Description
-U, --upper Converts header to "UPPER_CASE"
-L, --lower Converts header to "lower_case"
-T, --title Converts header to "Title_Case"
-S, --swapcase Converts header to "sWAP_cASE"
--border-only Returns only a border of characters with no header

🚀 Installation

Clone the git repo:

git clone https://www.github.com/BogdanPri/hfmt-cli.git

Install via pip:

cd hfmt-cli
pip install -e .

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

hfmt_cli-0.1.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

hfmt_cli-0.1.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hfmt_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.10

File hashes

Hashes for hfmt_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c7784129f23c22d7ff0b3c83c904542b0dbe45ff864dbe45a232492380cc0538
MD5 f7ec1bbbc24e215f1a20a80dc7c66859
BLAKE2b-256 614bb304bfd1d2cbd6e45f21394346ee672d797a2ee6d592915e67f978f04394

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hfmt_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.10

File hashes

Hashes for hfmt_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5c7b13896983a607066b11628e47a718045dd34790d6c6f9861ca4b188c88423
MD5 4384284464aff9d9ffadd2ca7d52cded
BLAKE2b-256 db4872a03f620966b93f6a1f41b1449b17c47c8c5bcd3750a8693e918a94745a

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