FIGlet
, and its python extension pyfiglet
(version 0.7.4
), is a great and simple way of generating ASCII art. All we need to do is supply FIGlet
with a string of our choice and a font style, which dictates the design of our text. We will use this module to print the title of our framework at the beginning of the program execution to give it some personality.
To use FIGlet
, we need to create a FIGlet
object and specify the type of font we would like to use. We then call the object's renderText
method along with the string to style. A full list of fonts can be found at http://www.figlet.org/examples.html.
>>> from pyfiglet import Figlet >>> f = Figlet(font='banner') >>> print f.renderText('Forensics') ####### # #### ##### ###### # # #### # #### #### # # # # # # ## # # # # # # ##### # # # # ##### # # # #### # # #### # # # ####...