Skip to main content

A Widget implementation of PyFiglet for Textual

Project description

textual-pyfiglet-banner

Textual-Pyfiglet

badge badge badge badge badge

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 the sister library of Rich-Pyfiglet.

Features

  • 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 dead 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.
  • Text can be typed or updated in real time - This can be connected to user input or modified programmatically.
  • 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, or experiment with a blend of these settings.
  • 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.

https://github.com/user-attachments/assets/c80edaa6-022d-4044-a8fc-d131e785baf9

Demo App

If you have uv or Pipx, you can immediately try the demo app:

uvx textual-pyfiglet 
pipx textual-pyfiglet

Documentation

Click here for documentation

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

textual_pyfiglet-0.9.0.tar.gz (99.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

textual_pyfiglet-0.9.0-py3-none-any.whl (21.3 kB view details)

Uploaded Python 3

File details

Details for the file textual_pyfiglet-0.9.0.tar.gz.

File metadata

  • Download URL: textual_pyfiglet-0.9.0.tar.gz
  • Upload date:
  • Size: 99.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.13

File hashes

Hashes for textual_pyfiglet-0.9.0.tar.gz
Algorithm Hash digest
SHA256 8da90e4ecbd6bf35a5ef465b8bb3d0a580e6287d1aef34f51f7e82ff478c3dec
MD5 0e88593df72ad0b7d2bdd15cb7003163
BLAKE2b-256 e15309fc0125ec1927f0edbc6c7b81cb1a4d5c1af90c46b770b0de7e868f8c0f

See more details on using hashes here.

File details

Details for the file textual_pyfiglet-0.9.0-py3-none-any.whl.

File metadata

File hashes

Hashes for textual_pyfiglet-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 263b4066dd5238b323c3c43c9245d593df75d91881a1abaecc6d46a9bd866713
MD5 15dff4518cf869beff84a79e21a22222
BLAKE2b-256 9673d9a40d82bc04cb0110cead5e9bb96e4a4f43bae124541421ebf5e74f76e8

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