Skip to main content
▙▄▄                ▗▟█▙  ▟█▙    ▐▄▄              ▄▄▄▄▄▄▄▄▄█             ▗█    ▙▄▖
▜██████████▄▖        ▀    ▀ ▗█  ▝█████████▙▄ ▗▟██████████▀▚▖   ▗▄█████████▛   ▜█████████▙▄
█▙▄▀▀▀▀▀▀█████▖  ▗▄███████████  █▄▄▀▀▀▀▜█████ ████▀     ▗███▌ ▟██████▀▀▀▀▄▄█▌ █▙▄▛▀▀▀▀▜████▌
████      ▟███▌ ▟████▀   ▀▀▀▀▄▌ ████     ████ ████▖     ▐███▌ ████▀    ▄████▌ ████     ▐███▌
██████████████  ████      ▐███▌ ████     ████ ▝█████████████▌ ██████████████▌ ████▄▄▄▄▄▟███▌
████     ▝▜███▌ ████      ▐███▌ ████     ████    ▀▀▘    ▀███▌ ████▙▖     ▄▄▄  ████████████▀
████      ▟███▌ ████▖     ▟███▌ ████     ████  ▄▄        ███▘ ▝▜████████████  ████  ▝███▙
██████████████  ▝█████████████▌ ▄▄▄▄     ▄▄▄▄   ▜▄▄▄▟███████    ▝▀▀▀▀▀▀▀▀▀▀▘  ████    ▜███▖
▀▀▀▀▀▀▀▀▀▀▀▀▀     ▀▀▀▀▀▀▀▀▝▀▀▀▘ ▝▘▝▘     ▝▘▝▘  ▐█▀▀▀▀▀▀▀▀▀▀                   ▀▀▀▀     ▝▀▀▀▘
                                               ▝
┅┅┅ Your banner deserves to be a bänger ┅┅┅┅┅┅ https://github.com/MarcinOrlowski/banger ┅┅┅

PyPI - Version GitHub License PyPI Downloads


What it is?

Bänger (pronounced just banger) is a modern tribute to the classic Unix banner command line utility that produces text banners, with additional features added a top: multiple built-in ASCII character set and support for rendering any TTF/OTF font with Unicode!

Key Features

  • Built-in fonts: use built-in fonts to bang!
  • Endless font options: use any TTF/OTF font installed on your system,
  • Better typography with proportional spacing that saves significant screen space,
  • Compatible with original Unix banner tool,
  • and moar!

Quick start

Create a banner with the default font:

$ banger "Hello World"

█  █      ▀█  ▀█           █   █          ▀█     █
█▀▀█ ▄▀▀▄  █   █  ▄▀▀▄     █   █ ▄▀▀▄ █▄▀  █  ▄▀▀█
█  █ █▀▀   █   █  █  █     █ █ █ █  █ █    █  █  █
█  █ ▀▄▄▀ ▄█▄ ▄█▄ ▀▄▄▀     █▀ ▀█ ▀▄▄▀ █   ▄█▄ ▀▄▄▀

NOTE: to maintain behavior of the original banner command, you need to quote the text to keep it as a single argument. Otherwise, the command will split the text into one word per line.

Using TTF/OTF fonts

Bänger can also use any TTF/OTF font installed on your system and convert it to beautiful ASCII art using Unicode quadrant blocks. Let's use TTF font of size 70pt and squeeze final banner into 10 terminal lines:

$ banger --ttf-font ~/.fonts/j/JetBrainsMonoNL_Regular.ttf --ttf-size 70 --ttf-lines 10 DäNgęR

█████████▙▄▄     ▐███   ▐██▌   ████▙       ███  ▗▄██████▄▐██▌  ▗▄▟██████▙▄▖  ██████████▙▄▄
██▌      ▀▜██▖                 ███▜█▙      ███ ▟██▛▘    ▝▜██▌ ▟██▛      ▜██▙ ███▌      ▀███▖
██▌       ▝███    ▄▄▄▄▄▄▄▄▄    ███ ▜██▖    ███ ███       ▐██▌ ███▄▄▄▄▄▄▄▄███ ███▌       ▐██▌
██▌        ███  ▟██▀▀▘ ▝▀▀██▙  ███  ▜██▖   ███ ███▖      ▐██▌ ███▀▀▀▀▀▀▀▀▀▀▀ ███▌     ▗▄██▛▘
██▌        ███     ▄▄▄▄▄▄▄███▌ ███   ▜██▖  ███ ▐██▙▖    ▄▟██▌ ▜██▖      ▗▄▄▄ ██████████▀▀▘
██▌        ███ ▗▟██▀▀▀▀▀▀▀███▌ ███    ▜██▖ ███  ▝▀▜████▛▀▐██▌  ▀███▄▄▄▄▟██▀▘ ███▌   ▜██▙
██▌       ▐██▛ ███        ███▌ ███     ▀██▖███           ▐██▌     ▝▀▜█▛▀     ███▌    ▝███▖
██▙▄▄▄▄▄▄███▀  ▜██▙▄▄▄▄▄▄█▜██▌ ███      ▝█████   ▗▄▄▄▄▄▄▄███▘      ▐█▙       ███▌     ▝▜██▙
▀▀▀▀▀▀▀▀▀▘       ▝▀▀▀▀▀▀  ▝▀▀▘ ▀▀▀       ▝▀▀▀▀   ▝▀▀▀▀▀▀▀▀          ▝▀▀▀▀▘   ▀▀▀▘       ▀▀▀▘

Further reading


License

Metadata

Release files for banger 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for banger 1.1.0
File Size Uploaded Provenance Actions
banger-1.1.0.tar.gz 49.4 kB Without provenance Details for banger-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for banger 1.1.0
File Interpreter ABI Platform Actions
banger-1.1.0-py3-none-any.whl Python 3 none any Details for banger-1.1.0-py3-none-any.whl

Total release size: 95.3 kB

Release files / banger-1.1.0.tar.gz

Download URL banger-1.1.0.tar.gz
Size 49.4 kB
Tags Source
SHA-256 checksum
How to use checksums
715f357b35babbf72b623116b5d528802bf1e1e2ae5a3f927c330468a31b4150
BLAKE2b-256 checksum
How to use checksums
59c576929973385188776165a20c14006fa12428f35b9f33a357a98f7a94654f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release files / banger-1.1.0-py3-none-any.whl

Download URL banger-1.1.0-py3-none-any.whl
Size 45.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d1bd16a6dab6c756c703e28c7ded74dd8b40362d2612c1d30c7609ab41fa7fbd
BLAKE2b-256 checksum
How to use checksums
8266002976f6e7ecb9731e61d350f553713c4c762acac5b1bd888754f9d2f9fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Security for banger 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page