The famous cowsay for GNU/Linux is now available for python
A python API/console script for the famous cowsay-linux.
cowsay for GNU/Linux was initially written in perl by Tony Monroe (firstname.lastname@example.org), with suggestions from Shannon Appel (appel@CSUA.Berkeley.EDU) and contributions from Anthony Polito (aspolito@CSUA.Berkeley.EDU).
For python by Vaasu Devan S <email@example.com>
Github Url https://www.github.com/VaasuDevanS
>>> python -m pip install cowsay >>> python3 -m pip install cowsay
Importing the Package
>>> import cowsay
Original Author—> Tony Monroe (firstname.lastname@example.org) # Thanks to him… !
For Python —> Vaasu Devan S
Email —> email@example.com
__version__ —> 1.0
Available Characters for python are:
[‘beavis’, ‘cheese’, ‘daemon’, ‘cow’, ‘dragon’, ‘ghostbusters’, ‘kitty’, ‘meow’, ‘milk’, ‘stegosaurus’, ‘stimpy’, ‘turkey’, ‘turtle’, ‘tux’]
syntax:->>> import cowsay >>> cowsay.<character-name>(text-message)(or)>>> from cowsay import * >>> <character-name>(text-message)
Example:->>> import cowsay >>> cowsay.tux("Python is fun")
This will bring the tux character and will say the message passed as arguments.
cowsay.chars contains all the function names.
cowsay.char_names contains all the character names as strings.
cowsay.about() will display the basic info on how to use this module.