A fun package that makes animals say things with moods in ASCII art!
Project description
Python Package Exercise
An exercise to create a Python package, build it, test it, distribute it, and use it. See instructions for details.
Animal Say
Animal Say is a Python package that lets animals "speak" in ASCII art with different moods! You can have a cow, dog, cat, or sheep say anything you want, in a happy, sad, neutral, angry, or surprised mood.
USAGE:
import animalsay
# Make a happy dog say "Hello! I'm a happy dog!"
print(animalsay.dog("Hello! I'm a happy dog!", mood="happy"))
EXAMPLE OUTPUT:
Hello! I'm a happy dog!
\
\ / \__
( ∩\\__
/ O
/ (_____/
/_____/ U
Available Animals
- cow
- dog
- cat
- sheep
Available Moods
- happy
- sad
- neutral
- angry
- surprised
Functions
All animals use the same function signature:
animal(test: str, mood: str = "neutral") -> str
- text: The string message the animal will "say".
- mood: One of the available moods (happy, sad, neutral, angry, surprised). Defaults to "neutral".
- Returns: A string containing the ASCII art of the animal speaking the message with the selected mood.
Example:
import animalsay
ascii_art = animalsay.sheep("Baa! I'm surprised!", mood="surprised")
print(ascii_art)
Contributions
To set up the project locally:
- First, clone the repository into a workspace.
git clone https://github.com/user/repository-name.git
cd repository-name
- Change this line in Pipfile into your current Python version.
[requires]
python_version = "3.10"
- Then, use pipenv to install all dependencies.
pip install pipenv
pipenv install --dev
- To build, run tests, or upload through twine, use pipenv to run our scripts.
pipenv run test # run tests
pipenv run build # build the package
pipenv run upload # upload to PyPI
Installation
-
Option A — Install from TestPyPI
If the package has been uploaded to TestPyPI, install it using:
pip install -i https://test.pypi.org/simple/ animalsay-jubilee-yl9778
Tip: Add --upgrade if you already installed an older version.
pip install -i https://test.pypi.org/simple/ animalsay-jubilee-yl9778 --upgrade
-
Option B — Install from Source
If you have cloned the repository manually:
git clone https://github.com/swe-students-fall2025/3-python-package-team_jubilee.git
cd 3-python-package-team_jubilee
pip install .
- Option C - Install from real PyPI
pip install animalsay-jubilee
https://pypi.org/project/animalsay-jubilee/
Team Members
Have fun making animals talk! 🐶🐱🐮🐑
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file animalsay_jubilee-0.1.4.tar.gz.
File metadata
- Download URL: animalsay_jubilee-0.1.4.tar.gz
- Upload date:
- Size: 44.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d39a43b75c492b8c593bc7f9cd72a1793a87e96a46b108250dfcb10545cd9d8
|
|
| MD5 |
207786d49d2642006d97f534c1e8b51a
|
|
| BLAKE2b-256 |
9f8c58923ea929a8a673dd452abd44c2f5bcd8af26450607acd4b6beccfe93ea
|
File details
Details for the file animalsay_jubilee-0.1.4-py3-none-any.whl.
File metadata
- Download URL: animalsay_jubilee-0.1.4-py3-none-any.whl
- Upload date:
- Size: 30.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59bed044b3ef0b063e47f5f066f1932e08fcc4d3c3e7b4820135bb86a439d13f
|
|
| MD5 |
f368ef6e8e987a306ca9bdd2aa7131a9
|
|
| BLAKE2b-256 |
9752f5ed95462c1aed52c0463a52742b38241df43847b0fefced85e0d64d5c87
|