Python Library: pyfiglet

ascii art text generator

pyfiglet is a full port of FIGlet (http://www.figlet.org/) into pure python. It takes ASCII text and renders it in ASCII art fonts.

Library resources
PyPI ---
Github https://github.com/pwaller/pyfiglet
Documentation ---

Getting Started

pip install pyfiglet

Usage

from pyfiglet import Figlet
f = Figlet(font='slant')
print f.renderText('text to render')

⬇︎

 _            _     _                             _           
| |_ _____  _| |_  | |_ ___    _ __ ___ _ __   __| | ___ _ __ 
| __/ _ \ \/ / __| | __/ _ \  | '__/ _ \ '_ \ / _` |/ _ \ '__|
| ||  __/>  <| |_  | || (_) | | | |  __/ | | | (_| |  __/ |   
 \__\___/_/\_\\__|  \__\___/  |_|  \___|_| |_|\__,_|\___|_|   

Additional fonts

testing with:

fonts = [
    'slant',
    'small',
    'shadow',
    'rounded',
    'roman',
    'drpepper',
    'cybermedium',
    'cricket',
    'colossal',
    'chunky',
    'broadway',
    'big',
    'basic',
    'banner',
]

fonts = sorted(fonts)

from pyfiglet import Figlet

for font in fonts:
    f = Figlet(font=font)
    ascii_art = f.renderText(font)
    print(ascii_art)

⬇︎

#####    ##   #    # #    # ###### #####  
#    #  #  #  ##   # ##   # #      #    # 
#####  #    # # #  # # #  # #####  #    # 
#    # ###### #  # # #  # # #      #####  
#    # #    # #   ## #   ## #      #   #  
#####  #    # #    # #    # ###### #    # 


d8888b.  .d8b.  .d8888. d888888b  .o88b. 
88  `8D d8' `8b 88'  YP   `88'   d8P  Y8 
88oooY' 88ooo88 `8bo.      88    8P      
88~~~b. 88~~~88   `Y8b.    88    8b      
88   8D 88   88 db   8D   .88.   Y8b  d8 
Y8888P' YP   YP `8888Y' Y888888P  `Y88P' 



 _     _       
| |   (_)      
| |__  _  __ _ 
| '_ \| |/ _` |
| |_) | | (_| |
|_.__/|_|\__, |
          __/ |
         |___/ 


8 888888888o   8 888888888o.      ,o888888o.           .8.          
8 8888    `88. 8 8888    `88.  . 8888     `88.        .888.         
8 8888     `88 8 8888     `88 ,8 8888       `8b      :88888.        
8 8888     ,88 8 8888     ,88 88 8888        `8b    . `88888.       
8 8888.   ,88' 8 8888.   ,88' 88 8888         88   .8. `88888.      
8 8888888888   8 888888888P'  88 8888         88  .8`8. `88888.     
8 8888    `88. 8 8888`8b      88 8888        ,8P .8' `8. `88888.    
8 8888      88 8 8888 `8b.    `8 8888       ,8P .8'   `8. `88888.   
8 8888    ,88' 8 8888   `8b.   ` 8888     ,88' .888888888. `88888.  
8 888888888P   8 8888     `88.    `8888888P'  .8'       `8. `88888. 

8 888888888o.    `8.`888b                 ,8' .8.   `8.`8888.      ,8' 
8 8888    `^888.  `8.`888b               ,8' .888.   `8.`8888.    ,8'  
8 8888        `88. `8.`888b             ,8' :88888.   `8.`8888.  ,8'   
8 8888         `88  `8.`888b     .b    ,8' . `88888.   `8.`8888.,8'    
8 8888          88   `8.`888b    88b  ,8' .8. `88888.   `8.`88888'     
8 8888          88    `8.`888b .`888b,8' .8`8. `88888.   `8. 8888      
8 8888         ,88     `8.`888b8.`8888' .8' `8. `88888.   `8 8888      
8 8888        ,88'      `8.`888`8.`88' .8'   `8. `88888.   8 8888      
8 8888    ,o88P'         `8.`8' `8,`' .888888888. `88888.  8 8888      
8 888888888P'             `8.`   `8' .8'       `8. `88888. 8 8888      

       __                 __          
.----.|  |--.--.--.-----.|  |--.--.--.
|  __||     |  |  |     ||    <|  |  |
|____||__|__|_____|__|__||__|__|___  |
                               |_____|

                888                                888 
                888                                888 
                888                                888 
 .d8888b .d88b. 888 .d88b. .d8888b .d8888b  8888b. 888 
d88P"   d88""88b888d88""88b88K     88K         "88b888 
888     888  888888888  888"Y8888b."Y8888b..d888888888 
Y88b.   Y88..88P888Y88..88P     X88     X88888  888888 
 "Y8888P "Y88P" 888 "Y88P"  88888P' 88888P'"Y888888888 




           __      __          __   
.----.----|__.----|  |--.-----|  |_ 
|  __|   _|  |  __|    <|  -__|   _|
|____|__| |__|____|__|__|_____|____|





____ _   _ ___  ____ ____ _  _ ____ ___  _ _  _ _  _ 
|     \_/  |__] |___ |__/ |\/| |___ |  \ | |  | |\/| 
|___   |   |__] |___ |  \ |  | |___ |__/ | |__| |  | 


   _                                    
 _| | _ _  ___  ___  ___  ___  ___  _ _ 
/ . || '_>| . \/ ._>| . \| . \/ ._>| '_>
\___||_|  |  _/\___.|  _/|  _/\___.|_|  
          |_|       |_|  |_|            



oooo d8b  .ooooo.  ooo. .oo.  .oo.    .oooo.   ooo. .oo.   
`888""8P d88' `88b `888P"Y88bP"Y88b  `P  )88b  `888P"Y88b  
 888     888   888  888   888   888   .oP"888   888   888  
 888     888   888  888   888   888  d8(  888   888   888  
d888b    `Y8bod8P' o888o o888o o888o `Y888""8o o888o o888o 




                            _           _ 
                           | |         | |
  ____ ___  _   _ ____   __| |_____  __| |
 / ___) _ \| | | |  _ \ / _  | ___ |/ _  |
| |  | |_| | |_| | | | ( (_| | ____( (_| |
|_|   \___/|____/|_| |_|\____|_____)\____|


      |               |                
  __| __ \   _` |  _` |  _ \\ \  \   / 
\__ \ | | | (   | (   | (   |\ \  \ /  
____/_| |_|\__,_|\__,_|\___/  \_/\_/   


         __            __ 
   _____/ /___ _____  / /_
  / ___/ / __ `/ __ \/ __/
 (__  ) / /_/ / / / / /_  
/____/_/\__,_/_/ /_/\__/  


               _ _ 
 ____ __  __ _| | |
(_-< '  \/ _` | | |
/__/_|_|_\__,_|_|_|

from:

Overview:

links

social