Registry / cowsay-python

cowsay-python

JSON →
library1.0.2pypypi✓ verified 85d ago

A very basic Python implementation of the classic cowsay program. Provides ASCII art cows and other characters that display messages. Current version 1.0.2, updated sporadically.

pip install cowsay-python
INSTALL
IMPORT
SIG · COWSAY-PYTHON
C
cowsay-python
pythonv1.0.2
Install
1.5s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.0.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.5s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

cowsay
import cowsay

Basic usage: call the animal function with a message.

import cowsay # Draw a cow saying hello cowsay.cow("Hello, Python!") # Draw a trex cowsay.trex("I'm a T-Rex!")
cowsay --version
Debug
Known issues
gotchaThis package is not affiliated with the original `cowsay` package on PyPI (which is a wrapper around the system cowthink/cowsay). `cowsay-python` is a standalone Python implementation. Do not confuse them.
fix
Use `import cowsay` for this package. The other package is imported as `cowsay.main`.
affects: all
gotchaOnly a limited set of characters (cow, trex, rabbit, etc.) are available. Not all classic cowsay animals are implemented.
fix
Check the source code or docs for available functions.
affects: <2.0
Errors
Common errors & fixes
ImportError: No module named 'cowsay'
The package is not installed or installed under a different name (e.g., `cowsay-python` vs `cowsay`).
fix
Run `pip install cowsay-python`. Then import as `import cowsay`.
AttributeError: module 'cowsay' has no attribute 'cow'
Using an older version (<1.0) or confusing with the original `cowsay` package.
fix
Upgrade to latest: `pip install --upgrade cowsay-python`. Ensure you are using the correct package.
Upgrade
Version history
1.0.2latest on PyPI · released Aug 17, 2024
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
cowsay-python — pip install cowsay-python · libregistry