What is this?
I like banner comments in my code. Modern IDE's have fancier ways of doing this like code collapsing and such. And, Python style guides generally prohibit this style of commenting. But, I like to see the big test while scrolling (or, in subl
).
Example
Running this:
from banner_comment import *
banner_comment("hello")
Prints:
###############################################################################
# _ _ _ #
# | |__ ___| | | ___ #
# | '_ \ / _ \ | |/ _ \ #
# | | | | __/ | | (_) | #
# |_| |_|\___|_|_|\___/ #
# #
###############################################################################
Installation
This (one function) package just wraps figlet. You need to install figlet first. It exists on lots of package managers. E.g.
brew install figlet # for OSX
apt-get install figlet # for ubuntu
After installing figlet, do
pip install banner_comment