Skip to main content

cowspam

A small, silly, screen-cluttering Python library derived from Cowsay. By Ian Rodriguez.

Cowsay was originally created by Tony Monroe, and its Python port by multiple contributors is available as a GitHub repo. The purpose of cowspam is a personal challenge to see how far I can go with making a derivative of such a small, niche library.

Requires pip and Python 3.12 or later. From the project directory, build with these commands:

python -m pip install .
cowspam --help

Or build a distributable package:

python -m pip install build
python -m build

Library

from cowspam import Cow, make_cow_text, run_kilobytes

cow = Cow("Bessie")
cow.moo()

text, is_normal = make_cow_text()
counts, bytes_generated = run_kilobytes(1, write_output=False) # Generates 1 KB of cowsay spam

CLI Commands

  • -h / --help - View commands
  • (loops) - Positional argument; enter a number of cows to generate, either to terminal or piped to a file. Default: 100.
  • -a / --auto - Run without a 1-second delay between cowsay prints; automatic for piped
  • -f / --flash - (Epilepsy warning) Clear the screen for each cow print, creating a flashing effect
  • -k / --kb / --kilobytes X - Alternative to loops: generate cowsay prints until X amount is generated in kilobytes.
  • -n / --normal - Only generate normal cows

Metadata

Release files for cowspam 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cowspam 1.0.0
File Size Uploaded Provenance Actions
cowspam-1.0.0.tar.gz 5.6 kB With provenance Details for cowspam-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cowspam 1.0.0
File Interpreter ABI Platform Actions
cowspam-1.0.0-py3-none-any.whl Python 3 none any Details for cowspam-1.0.0-py3-none-any.whl

Total release size: 11.9 kB

Release files / cowspam-1.0.0.tar.gz

Download URL cowspam-1.0.0.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2a0633b5c79058632e5db91ed9a99ebcb98c5e0eae94e9b7c79af30e276bca1e
BLAKE2b-256 checksum
How to use checksums
66e7b6aec86f219dfb18bf7749d1bd4c60a21ded085132a8988d8a180cdbb718
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Release files / cowspam-1.0.0-py3-none-any.whl

Download URL cowspam-1.0.0-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a76e945b6a9e987d32383673b65833adf3b2a15c8592c7bdd4f9ed8303ddbe55
BLAKE2b-256 checksum
How to use checksums
a4eb8edc977643662ada61cc27ceae6209687a399d44ada57fbc8f780508fc5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Security for cowspam 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for cowspam-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page