Skip to main content

A Python version of the famous cowsay program by Tony Monroe.

Project description

Animalsay

A Python version of the famous cowsay program by Tony Monroe. It is based in this other Python package with way cuter animals. If you like it, feel free to contribute and add your own animals.

Install

Animalsay requires Python 3.6 or higher to run.

$ pip install animalsay

Usage

$ from animalsay.utils import say
$ say("cow", "hello world!")

  ____________
< hello world! >
  ============
       \
        \
          ^__^
          (oo)\_______
          (__)\       )\/\
              ||----w |
              ||     ||
$ say("bunny", "Such a cutie pie!")
  _________________
< Such a cutie pie! >
  =================
                      \
                       \
                          (\_____/)
                          ( ' x ' )
                          c (")(")

It accepts both a short sentence and a long text.

$ say("cat", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam lacinia tellus eros, sit amet rhoncus sapien volutpat at. In odio justo, placerat at posuere ut, elementum eu ligula. Cras facilisis gravida tincidunt.")
  _________________________________________________
 /                                                 \
| Lorem ipsum dolor sit amet, consectetur adipiscin |
| g elit. Aliquam lacinia tellus eros, sit amet rho |
| ncus sapien volutpat at. In odio justo, placerat  |
| at posuere ut, elementum eu ligula. Cras facilisi |
| s gravida tincidunt.                              |
 \                                                 /
  =================================================
                                                      \
                                                       \
                                                           /\___/\
                                                          ( =^.^= )
                                                           (")(")_/

More Animals

To see the the list of available animals.

$ from animalsay.utils import animals
$ animals.keys()

dict_keys(['cow', 'bunny', 'cat'])

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

animalsay-1.0.5.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

animalsay-1.0.5-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file animalsay-1.0.5.tar.gz.

File metadata

  • Download URL: animalsay-1.0.5.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.23.0 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for animalsay-1.0.5.tar.gz
Algorithm Hash digest
SHA256 b6295dfd45ff661ec6fc1aafb66fd9be9271144287b3ed97a24060fa0205c7ae
MD5 4b40356ae1393ea58fbc6ffde5f87f9a
BLAKE2b-256 5058a4a8bb8b3288d990185dd2d93b59a4514d728cdd3a87203fa3bfa7250bb3

See more details on using hashes here.

File details

Details for the file animalsay-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: animalsay-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.23.0 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for animalsay-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 40b8c29ca529a7ce5856e13b2b825f0bc73553bd1904b76575a6904153ae4c1b
MD5 bb562f6c651af4fbed835bb4a5d18cce
BLAKE2b-256 753210be8630840d0afe4d0db53ab8d4531e13ed4f1b3826e43bf9a74d87b682

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