Skip to content

donno2048/figcow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

figcow

Python cowsay that looks like a figlet.

No dependencies.

install

From Pypi:

pip3 install figcow

From GitHub:

pip3 install git+https://github.com/donno2048/figcow

Usage

In cmd:

> figcow Example
 _________________________________________________
/  _____                                 _        \
| | ____|__  __  __ _  _ __ ___   _ __  | |  ___  |
| |  _|  \ \/ / / _` || '_ ` _ \ | '_ \ | | / _ \ |
| | |___  >  < | (_| || | | | | || |_) || ||  __/ |
| |_____|/_/\_\ \__,_||_| |_| |_|| .__/ |_| \___| |
\                                |_|              /
 ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
     \   ^__^
      \  (oo)\_______
         (__)\       )\/\
           ||----w |
           ||     ||
> echo 9 | figcow
 ____________
/   ___      \
|  / _ \     |
| | (_) |    |
|  \__, |    |
|    /_/     |
\            /
 ‾‾‾‾‾‾‾‾‾‾‾‾
     \   ^__^
      \  (oo)\_______
         (__)\       )\/\
            ||----w |
            ||     ||

In a script:

>>> from figcow import cow
>>> c = cow("Another example", 20) # The second argument is the maximum width of the text
>>> print(c)
 __________________
/     _            \
|    / \    _ __   |
|   / _ \  | '_ \  |
|  / ___ \ | | | | |
| /_/   \_\|_| |_| |
|                  |
|         _        |
|   ___  | |_      |
|  / _ \ | __|     |
| | (_) || |_      |
|  \___/  \__|     |
|                  |
|  _               |
| | |__    ___     |
| | '_ \  / _ \    |
| | | | ||  __/    |
| |_| |_| \___|    |
|                  |
|                  |
|  _ __      ___   |
| | '__|    / _ \  |
| | |      |  __/  |
| |_|       \___|  |
|                  |
|                  |
| __  __  __ _     |
| \ \/ / / _` |    |
|  >  < | (_| |    |
| /_/\_\ \__,_|    |
|                  |
|                  |
|  _ __ ___        |
| | '_ ` _ \       |
| | | | | | |      |
| |_| |_| |_|      |
|                  |
|         _        |
|  _ __  | |  ___  |
| | '_ \ | | / _ \ |
| | |_) || ||  __/ |
| | .__/ |_| \___| |
| |_|              |
|                  |
|                  |
|                  |
|                  |
|                  |
\                  /
 ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
     \   ^__^
      \  (oo)\_______
         (__)\       )\/\
           ||----w |
           ||     ||