skillfed

pyfiglet

Pure-python FIGlet implementation

pyfiglet v1.0.4 6.7M downloads/30d#1,871 on PyPI1,580
Permissive license MIT Active released

What it is and what it does

pyfiglet is a pure-Python port of the classic FIGlet command-line tool that converts ASCII text into ASCII art using stylized fonts. It supports kerning and smushing (character overlap) to produce output identical to the original C implementation. The package includes a collection of fonts and can be used either as a standalone command-line utility or embedded in Python code as a library.

The main use case is generating decorative ASCII art text for terminal output, documentation headers, or console-based applications. It has no external runtime dependencies, making it lightweight and easy to integrate. The package is actively maintained, supports Python 3.7 through 3.11, and has been in development since 2012.

Use it for:

  • Generate decorative ASCII art headers for terminal applications or logs.
  • Create stylized text banners for CLI tools and command-line interfaces.
  • Embed ASCII art rendering in Python scripts without calling external programs.
  • Add visual text effects to documentation or README files.
  • Build ASCII art generators or text-art display utilities.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Renders ASCII text as ASCII art using a variety of fonts, available both as a command-line tool and a Python library.

Yes. pyfiglet is a lightweight, zero-dependency library with active maintenance, no known vulnerabilities, and permissive licensing. Install it if you need ASCII art text rendering in Python or at the command line; the low friction and stable API make it a straightforward addition to any project.

Install

pyfiglet on PyPI

pip

pip install pyfiglet

uv

uv add pyfiglet

poetry

poetry add pyfiglet

Installing pyfiglet

Before you install

Low friction: pure Python wheel with no runtime dependencies. Actively maintained with recent release (364 days ago) and 1580 repository stars.

License in practice

MIT license (permissive) allows use, modification, and redistribution with minimal restrictions.

Quickstart

pip install pyfiglet

from pyfiglet import Figlet
f = Figlet(font='slant')
print(f.renderText('Hello'))

Requires Python 3.9 or later.

Verify before relying

  • Whether all included fonts have confirmed redistribution rights or if some remain in legal gray area as described in the FAQ.
  • Performance characteristics when rendering very large text or with complex fonts.

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.9)
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance actively maintained — 364 days since the last release
Last repo commit
First released
Downloads 6,697,248/month — #1,871 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pyfiglet-1.0.4-py3-none-any.whl

Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: BosnianNatural Language :: BulgarianNatural Language :: EnglishNatural Language :: JapaneseNatural Language :: MacedonianNatural Language :: RussianNatural Language :: SerbianOperating System :: UnixProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Text ProcessingTopic :: Text Processing :: Fonts

Tags

ascii art text renderingfiglet python porttext to ascii artascii font renderingconsole text artfiglet library pythonascii art fonts
ascii-artcli-utilitytext-rendering

More Text Processing packages