Skip to main content

The famous cowsay for GNU/Linux is now available for python

Project description

Cowsay

A python API/console script for the famous cowsay-linux.

cowsay for GNU/Linux was initially written in perl by Tony Monroe (tony@nog.net), with suggestions from Shannon Appel (appel@CSUA.Berkeley.EDU) and contributions from Anthony Polito (aspolito@CSUA.Berkeley.EDU).

For python by Vaasu Devan S <vaasuceg.96@gmail.com>

Github Url https://www.github.com/VaasuDevanS

Installation

>>> python -m pip install cowsay
>>> python3 -m pip install cowsay

Importing the Package

>>> import cowsay

Basic Information

Original Author—> Tony Monroe (tony@nog.net) # Thanks to him… !

For Python —> Vaasu Devan S

Email —> vaasuceg.96@gmail.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.

Project details


Download files

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

Source Distribution

cowsay-1.0.tar.gz (5.9 kB view details)

Uploaded Source

File details

Details for the file cowsay-1.0.tar.gz.

File metadata

  • Download URL: cowsay-1.0.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cowsay-1.0.tar.gz
Algorithm Hash digest
SHA256 93bf7695c179ff8c93ea5cb1d0d4a895c30c6756087da8cb1deb4165f4fc8c24
MD5 fd5b1f34a099e39ce46ef62f980f0fa7
BLAKE2b-256 8f1f37fbc878a11a2f2cdf680b74f4f8cd8cfbdf464779c6838a0914f2bcea3c

See more details on using hashes here.

Supported by

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