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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| perfect-banner-1.0.0.post1.tar.gz | 2.2 kB | Without provenance | Details for perfect-banner-1.0.0.post1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| perfect_banner-1.0.0.post1-py3-none-any.whl | Python 3 | none | any | Details for perfect_banner-1.0.0.post1-py3-none-any.whl |
Total release size: 4.7 kB
Security for perfect-banner 1.0.0.post1
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.