Skip to main content

A simple Python utility to display banners in the terminal

Project description

Simple Terminal Banner

Build Status

** Simple Terminal Banner **************
*                                      *
*    Hello, World!                     *
*                                      *
****************************************

Display a simple terminal banner.

Features

  • Banner Title
  • Themes
  • Padding
  • Margin
  • Configurable border symbols
  • Configurable background symbols

Example

from simple_terminal_banner import Banner

banner = Banner("Hello, World!")
banner.display()

Produces:

****************************************
*                                      *
* Hello, World!                        *
*                                      *
****************************************

Titles

banner.title = "Banner Example"

Produces:

** Banner Example **********************
*                                      *
* Hello, World!                        *
*                                      *
****************************************

Padding

Title Padding

banner.title_padding = 4

Produces:

**    Banner Example    ****************
*                                      *
* Hello, World!                        *
*                                      *
****************************************

Content Padding

banner.padding_top = 4

Produces:

**    Banner Example    ****************
*                                      *
*                                      *
*                                      *
*                                      *
* Hello, World!                        *
*                                      *
****************************************

Configurable Symbols

Border Symbols

banner.border_symbol = "="

Produces:

==    Banner Example    ================
=                                      =
=                                      =
=                                      =
=                                      =
= Hello, World!                        =
=                                      =
========================================

Background Symbols

banner.background_symbol = "."

Produces:

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

simple_terminal_banner-0.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.

simple_terminal_banner-0.1.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simple_terminal_banner-0.1.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.0

File hashes

Hashes for simple_terminal_banner-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c3d17038dc40e2a356725a3fd2b54f2f822f27c1c1a6f49c484180a0070c99de
MD5 1dc0f6b4a4c6d4fd79dad3616f7051b6
BLAKE2b-256 d080fcc01224cb2e796d530b4d3f39284be63a02bececb9d60d7b9d424bb5dce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_terminal_banner-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b88da381989a3c63200e34153ace228b0f4330837e3dc784f45cf8ce1ca1137c
MD5 0f8cf7a0467816d88d1f5d197ce14f49
BLAKE2b-256 62b100863432ced63a65eb1e73522fd044765b61197aa85a5550586736e9c151

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