Introduction

pyfiglet is the Python implementation of the FIGlet font rendering system.

Installation

pip3 install pyfiglet

Usage

>>> import pyfiglet
>>> figlet_obj = pyfiglet.figlet_format("Hello World")
>>> print(figlet_obj)
 _   _      _ _        __        __         _     _
| | | | ___| | | ___   \ \      / /__  _ __| | __| |
| |_| |/ _ \ | |/ _ \   \ \ /\ / / _ \| '__| |/ _` |
|  _  |  __/ | | (_) |   \ V  V / (_) | |  | | (_| |
|_| |_|\___|_|_|\___/     \_/\_/ \___/|_|  |_|\__,_|

Reference

  1. geeksforgeeks