Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

A small and lightweight library for Python 3.x and PyPy3 to print texts as banners. Works on Linux, MacOS and Windows. No Figlet, Toilet ou PyFiglet needed, it's Pure Python!

License

Notifications You must be signed in to change notification settings

rabuchaim/pybanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pybanner v1.0.3

A small and lightweight library for Python 3.x and PyPy3 to print texts as banners. No Figlet, Toilet ou PyFiglet needed. Works on Linux, MacOS and Windows.

It's so small that you can even copy the class code and paste it into your own code, it's Pure Python!

  • Font classes available:
    • banner (the classic font)
    • banner3
    • banner3d
    • banner4
    • banner_5x7
    • banner_5x8
    • banner_6x9
    • banner_6x10
    • banner_clr4x6
    • banner_clr5x6
    • banner_clr5x8
    • banner_clr5x10
    • banner_clr6x6
    • banner_clr6x8
    • banner_clr6x10
    • banner_clb6x10
    • banner_clr7x8
    • banner_clr7x10
    • banner_clr8x8
    • banner_clb8x8
    • banner_clr8x10
    • banner_clb8x10

Join our Google Group to be notified when new fonts are available: https://groups.google.com/g/pybanner

Installation

pip install pybanner

Usage

from pybanner import banner_clr6x6 as banner, MIDDOT
banner.print("BANNER clr6x6",spacing=1) # default spacing 0 between letters - In some fonts, is better to adjust to 1
print("")
banner.print("BANNER clr6x6") 
print("")
banner.print("BANNER clr6x6",char="^")  # you can replace the '#' by a char that you like best
print("")
banner.print("BANNER clr6x6",char=MIDDOT) 
 ####     #    #   #  #   #  #####  ####                  ##            ###           ###
 #   #   # #   ##  #  ##  #  #      #   #          ###     #    # ##   #      #  #   #
 ####   #   #  # # #  # # #  ####   ####          #        #    ##     ####    ##    ####
 #   #  #####  #  ##  #  ##  #      # #           #        #    #      #   #   ##    #   #
 ####   #   #  #   #  #   #  #####  #  ##          ###    ###   #       ###   #  #    ###

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

 ^^^^    ^   ^   ^ ^   ^ ^^^^^ ^^^^               ^^          ^^^         ^^^
 ^   ^  ^ ^  ^^  ^ ^^  ^ ^     ^   ^        ^^^    ^   ^ ^^  ^     ^  ^  ^
 ^^^^  ^   ^ ^ ^ ^ ^ ^ ^ ^^^^  ^^^^        ^       ^   ^^    ^^^^   ^^   ^^^^
 ^   ^ ^^^^^ ^  ^^ ^  ^^ ^     ^ ^         ^       ^   ^     ^   ^  ^^   ^   ^
 ^^^^  ^   ^ ^   ^ ^   ^ ^^^^^ ^  ^^        ^^^   ^^^  ^      ^^^  ^  ^   ^^^

 ····    ·   ·   · ·   · ····· ····               ··          ···         ···
 ·   ·  · ·  ··  · ··  · ·     ·   ·        ···    ·   · ··  ·     ·  ·  ·
 ····  ·   · · · · · · · ····  ····        ·       ·   ··    ····   ··   ····
 ·   · ····· ·  ·· ·  ·· ·     · ·         ·       ·   ·     ·   ·  ··   ·   ·
 ····  ·   · ·   · ·   · ····· ·  ··        ···   ···  ·      ···  ·  ·   ···

All available fonts:

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

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

'########:::::'###::::'##::: ##:'##::: ##:'########:'########:::'#######::'########::
 ##.... ##:::'## ##::: ###:: ##: ###:: ##: ##.....:: ##.... ##:'##.... ##: ##.... ##:
 ##:::: ##::'##:. ##:: ####: ##: ####: ##: ##::::::: ##:::: ##:..::::: ##: ##:::: ##:
 ########::'##:::. ##: ## ## ##: ## ## ##: ######::: ########:::'#######:: ##:::: ##:
 ##.... ##: #########: ##. ####: ##. ####: ##...:::: ##.. ##::::...... ##: ##:::: ##:
 ##:::: ##: ##.... ##: ##:. ###: ##:. ###: ##::::::: ##::. ##::'##:::: ##: ##:::: ##:
 ########:: ##:::: ##: ##::. ##: ##::. ##: ########: ##:::. ##:. #######:: ########::
........:::..:::::..::..::::..::..::::..::........::..:::::..:::.......:::........:::

.########.....###....##....##.##....##.########.########..##.......
.##.....##...##.##...###...##.###...##.##.......##.....##.##....##.
.##.....##..##...##..####..##.####..##.##.......##.....##.##....##.
.########..##.....##.##.##.##.##.##.##.######...########..##....##.
.##.....##.#########.##..####.##..####.##.......##...##...#########
.##.....##.##.....##.##...###.##...###.##.......##....##........##.
.########..##.....##.##....##.##....##.########.##.....##.......##.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Sugestions, request of new fonts, feedbacks, bugs...

Open an issue or send a message to our Google Group: https://groups.google.com/g/pybanner

Or e-mail me: ricardoabuchaim at gmail.com

About

A small and lightweight library for Python 3.x and PyPy3 to print texts as banners. Works on Linux, MacOS and Windows. No Figlet, Toilet ou PyFiglet needed, it's Pure Python!

Topics

Resources

License

Stars

Watchers

Forks

Languages