Package wsatools :: Module Banner
[hide private]

Module Banner

source code

Module to produce UNIX banner command style ASCII art. Based on: http://code.activestate.com/recipes/577537-banner/


Author: R.S. Collins

Organization: WFAU, IfA, University of Edinburgh

Functions [hide private]
 
horizontal(word)
Display word as large ASCII art.
source code
 
vertical(word)
Display word as large ASCII art, oriented vertically.
source code
Variables [hide private]
  letterforms = [' | | | | | ...
  table = {' ': [' ', ' ', ' ', ' ', ' ...
  ROWS = 7
  __package__ = 'wsatools'
  form = ' ## |# # #| ## | | | | ...
Function Details [hide private]

horizontal(word)

source code 

Display word as large ASCII art. Example:

>>> horizontal('Hello')
#     #                                
#     #  ######  #       #        #### 
#     #  #       #       #       #    #
#######  #####   #       #       #    #
#     #  #       #       #       #    #
#     #  #       #       #       #    #
#     #  ######  ######  ######   #### 
>>> horizontal(str(5))
#######
#      
#      
###### 
      #
#     #
 #####
Parameters:
  • word (str) - Word to display.

vertical(word)

source code 

Display word as large ASCII art, oriented vertically.

Parameters:
  • word (str) - Word to display.

Variables Details [hide private]

letterforms

Value:
['       |       |       |       |       |       |       | |',
 '  ###  |  ###  |  ###  |   #   |       |  ###  |  ###  |!|',
 '  #  # |  #  # |  #  # |       |       |       |       |"|',
 '  # #  |  # #  |#######|  # #  |#######|  # #  |  # #  |#|',
 ' ##### |#  #  #|#  #   | ##### |   #  #|#  #  #| ##### |$|',
 '###   #|# #  # |### #  |   #   |  # ###| #  # #|#   ###|%|',
 '  ##   | #  #  |  ##   | ###   |#   # #|#    # | ###  #|&|',
 '  ###  |  ###  |   #   |  #    |       |       |       |\'|',
...

table

Value:
{' ': ['       ',
       '       ',
       '       ',
       '       ',
       '       ',
       '       ',
       '       '],
 '!': ['  ###  ', '  ###  ', '  ###  ', '   #   ', '       ', '  ###  \
...

form

Value:
' ##    |#  #  #|    ## |       |       |       |       |~|'