Skip to main content

perfect-banner

Your python project might have a cool looking ascii art banner. But did you took into account that some users may have a terminal open which has a character width that is smaller than the one of the art.

Perhaps you want to create multiple banners with different sizes so users with a smaller/bigger terminal screen can take a look at your wonderful

  ____                              
 |  _ \                             
 | |_) | __ _ _ __  _ __   ___ _ __ 
 |  _ < / _` | '_ \| '_ \ / _ \ '__|
 | |_) | (_| | | | | | | |  __/ |   
 |____/ \__,_|_| |_|_| |_|\___|_|   
                                    

Installation

pip install perfect-banner

Example Usage

This example imports the art package from the art library.

import banner
import art

def get_banners():
    for font in art.FONT_NAMES:
        yield art.text2art("python", font)

choice = banner.choose(*get_banners())
print(choice)

You can also optionally set width or hight to False in the choose function to ignore the width or height. By default width is set to True and height to False (due to the feasibility to scroll).

Metadata

Release files for perfect-banner 1.0.0.post1

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

Source distribution (sdist)

Source distribution for perfect-banner 1.0.0.post1
File Size Uploaded
perfect-banner-1.0.0.post1.tar.gz 2.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for perfect-banner 1.0.0.post1
File Interpreter ABI Platform
perfect_banner-1.0.0.post1-py3-none-any.whl Python 3 none any Details

Total release size: 4.7 kB

Release files / perfect-banner-1.0.0.post1.tar.gz

Download URL perfect-banner-1.0.0.post1.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8aa8ae01fff6e948f353b8d65b510e97e66a1d8bd246d5f5a9d681bfd34efdc6
BLAKE2b-256 checksum
How to use checksums
4d778c422d9600e2413a41f45367eb570d3a5524c6dbb2ba7ee73d3c3a6ead9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release files / perfect_banner-1.0.0.post1-py3-none-any.whl

Download URL perfect_banner-1.0.0.post1-py3-none-any.whl
Size 2.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8f2193605709b9b41840be4e06ae92239c540ef79b4850101f9e411827edc1b0
BLAKE2b-256 checksum
How to use checksums
b3cd4b0e2698f2f4869b9da3b7246a6a6f1c23e731f1f73204a890d8de60b855
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release history Release notifications | RSS feed

This release

1.0.0.post1 This release

2 release files

1.0.0

1 release file

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