pyfiglet: Render ASCII Text into ASCII Art Fonts in Python
This repository profile is provided by osrepos.com, an open source repository discovery platform.
Summary
pyfiglet is a pure Python port of the classic FIGlet utility, designed to transform ordinary ASCII text into impressive ASCII art fonts. It offers flexibility, allowing users to generate stylized text both from the command line and directly within their Python applications. This tool is ideal for adding unique visual flair to terminal outputs, banners, or creative text displays.
Repository Information
Topics
Click on any tag to explore related repositories
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Introduction
pyfiglet is a comprehensive pure Python port of the classic FIGlet utility, designed to transform standard ASCII text into decorative ASCII art fonts. This project brings the beloved functionality of FIGlet, including its complex kerning and smushing algorithms, directly into the Python ecosystem. It allows developers and users to generate stylized text for various purposes, such as terminal banners, log messages, or creative text displays, without relying on external executables.
Installation
Installing pyfiglet is straightforward using pip, the Python package installer.
To install the library:
pip install pyfiglet
If you wish to install new fonts, you can use the command-line interface:
pyfiglet -L <font file>
The font file can be a ZIP archive containing multiple fonts or a single font file. Depending on your installation, you might need root privileges (e.g., sudo pyfiglet -L <font file>). pyfiglet also automatically detects fonts installed by FIGlet in standard system paths like /usr/local/share/figlet and /usr/share/figlet.
Examples
pyfiglet can be used both as a command-line tool, similar to C figlet, and as a Python library within your code.
Command-line usage:
pyfiglet 'text to render'
You can specify a font using the -f option:
pyfiglet -f slant 'text to render'
As a Python library:
You can use the Figlet class for more control:
from pyfiglet import Figlet
f = Figlet(font='slant')
print(f.renderText('text to render'))
Alternatively, for a simpler approach:
import pyfiglet
f = pyfiglet.figlet_format("text to render", font="slant")
print(f)
Why Use pyfiglet?
- Pure Python Implementation: It's a full port of FIGlet written entirely in Python, eliminating the need for external C binaries or dependencies.
- Seamless Integration: Easily embed dynamic ASCII art rendering directly into your Python applications, scripts, or web services.
- Full FIGlet Feature Parity: It accurately supports advanced FIGlet features like kerning and smushing, ensuring output identical to the original utility.
- Versatile Usage: Provides both a robust command-line interface for quick text transformations and a flexible Python API for programmatic control.
- Active Maintenance: The project is actively maintained, addressing issues and incorporating improvements from a community of contributors.
Links
- GitHub Repository: https://github.com/pwaller/pyfiglet
Related repositories
Similar repositories that may be relevant next.

oh-my-logo: Create Stunning ASCII Art Logos with Gradients in Your Terminal
January 9, 2026
oh-my-logo is a powerful and zero-dependency CLI tool and library for generating beautiful ASCII art logos with vibrant gradient colors directly in your terminal. It offers various rendering modes, a wide selection of palettes, and extensive customization options to transform plain text into eye-catching visual banners. Perfect for enhancing project READMEs, CI/CD logs, or personalizing your terminal experience.

wttr.in: Instant Weather Forecasts Directly in Your Terminal
December 3, 2025
wttr.in is a highly popular, console-oriented weather forecast service that delivers detailed weather information directly to your terminal. It supports a wide array of output formats, including ANSI, HTML, PNG, JSON, and Prometheus metrics, making it incredibly versatile for various use cases. With extensive customization options and seamless integration capabilities, wttr.in handles millions of daily queries, providing quick and accessible weather data.
Source repository
Open the original repository on GitHub.