Skip to main 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 or PyFiglet needed, it's Pure Python!

Project description

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pybanner-1.0.3.tar.gz (29.6 kB view details)

Uploaded Source

File details

Details for the file pybanner-1.0.3.tar.gz.

File metadata

  • Download URL: pybanner-1.0.3.tar.gz
  • Upload date:
  • Size: 29.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.9

File hashes

Hashes for pybanner-1.0.3.tar.gz
Algorithm Hash digest
SHA256 763dcca0de77c642ef73828d4fb45ed12e71aff782054b65c908dd599d47ca80
MD5 7bc5875f3bcffad92b43657b35bba4c6
BLAKE2b-256 6893c31a3e90e2a8c7a6192fd65c28f21df34d8efab2df6bac94c1a33fce1a07

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page