A Widget implementation of PyFiglet for Textual
Project description
Textual-Pyfiglet
Textual-PyFiglet is an implementation of PyFiglet for Textual.
It provides a FigletWidget which makes it easy to add ASCII banners with colors and animating gradients.
This library is related to Rich-Pyfiglet, as well as utilizes Textual-Coloromatic to provide the Color/animation abilities.
Features
- Full integration of Pyfiglet into Textual. Change the text or the font in real time - This can be connected to user input or modified programmatically.
- Color system built on Textual's color system. Thus, it can display any color in the truecolor/16-bit spectrum, and can take common formats such as hex code and RGB, or just a huge variety of named colors.
- Make a gradient automatically between any two colors.
- Animation system that's simple to use. Just make your gradient and toggle it on/off. It can also be started or stopped in real-time.
- The auto-size mode will re-size the widget with the new rendered ASCII output in real-time. It can also wrap to the parent container and be made to resize with your terminal.
- Animation settings can be modified to get different effects. Set a low amount of colors and a low speed for a very old-school retro look, set it to a high amount of colors and a high speed for a very smooth animation.
- The fonts are type-hinted to give you auto-completion in your code editor, eliminating the need to manually check what fonts are available.
- Included demo app to showcase the features.
Demo App
If you have uv or pipx, you can immediately try the demo app:
uvx textual-pyfiglet
pipx run textual-pyfiglet
Documentation
Click here for documentation
Video
Your browser does not support the video tag.Questions, Issues, Suggestions?
Use the issues section for bugs or problems, and post ideas or feature requests on the TTY group discussion board.
Thanks and Copyright
Both Textual-Pyfiglet and the original PyFiglet are under MIT License. See LICENSE file.
FIGlet fonts have existed for a long time, and many people have contributed over the years.
Original creators of FIGlet:
https://www.figlet.org
The PyFiglet creators:
https://github.com/pwaller/pyfiglet
Textual:
https://github.com/Textualize/textual
And finally, thanks to the many hundreds of people that contributed to the fonts collection.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file textual_pyfiglet-1.0.0.tar.gz.
File metadata
- Download URL: textual_pyfiglet-1.0.0.tar.gz
- Upload date:
- Size: 112.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec7e594600b2beeb2013a84a0cbc4ba01ea7b8e5a8ae62e7691eb765b7c3b057
|
|
| MD5 |
3ac1c871e0b3855bb42dc03f4698e0e9
|
|
| BLAKE2b-256 |
51f27dc127d0266957cb92cca490e1ba18e8f1f89c965dc2d4ebfe0f66479928
|
Provenance
The following attestation bundles were made for textual_pyfiglet-1.0.0.tar.gz:
Publisher:
release.yml on edward-jazzhands/textual-pyfiglet
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
textual_pyfiglet-1.0.0.tar.gz -
Subject digest:
ec7e594600b2beeb2013a84a0cbc4ba01ea7b8e5a8ae62e7691eb765b7c3b057 - Sigstore transparency entry: 319505236
- Sigstore integration time:
-
Permalink:
edward-jazzhands/textual-pyfiglet@57e4f8d44b656c328b2701186a6730df76fa8258 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/edward-jazzhands
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@57e4f8d44b656c328b2701186a6730df76fa8258 -
Trigger Event:
push
-
Statement type:
File details
Details for the file textual_pyfiglet-1.0.0-py3-none-any.whl.
File metadata
- Download URL: textual_pyfiglet-1.0.0-py3-none-any.whl
- Upload date:
- Size: 23.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e35c32d7637e3322763b2116afcb8ea4cbb4b01054443e671d776eb2db3a191c
|
|
| MD5 |
a4091ad8aec6576f56ba4562c9282220
|
|
| BLAKE2b-256 |
f2b518e724357a9a9e75ea0269ac0bf335a37654f16d3c50abe64c13462205db
|
Provenance
The following attestation bundles were made for textual_pyfiglet-1.0.0-py3-none-any.whl:
Publisher:
release.yml on edward-jazzhands/textual-pyfiglet
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
textual_pyfiglet-1.0.0-py3-none-any.whl -
Subject digest:
e35c32d7637e3322763b2116afcb8ea4cbb4b01054443e671d776eb2db3a191c - Sigstore transparency entry: 319505264
- Sigstore integration time:
-
Permalink:
edward-jazzhands/textual-pyfiglet@57e4f8d44b656c328b2701186a6730df76fa8258 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/edward-jazzhands
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@57e4f8d44b656c328b2701186a6730df76fa8258 -
Trigger Event:
push
-
Statement type: