A small silly package which prints ASCII art based on certain inputs. Watch out for the interrupting cow
Project description
Python Package Exercise: ASCII ZOO
Project Description
ASCII ZOO is a small silly python package that prints ASCII animal art based on certain user inputs. Watch out for the interrupting cow... (It appears randomly).
ASCII Zoo allows you to:
- Print Art Animal: Displays ASCII art of the animal along with its name.
- Animal Sounds: Outputs the corresponding sound after printing the ASCII animal.
- Surprise Cow: Randomly shows up with an ASCII art representation and a “moo”.
- Wrong Output: Handles unrecognized animal names, confirming wrong input with a playful response.
Example Code
from ascii_art_TNH import ascii_art
ascii_art("cat dog") # Will print one cat and one dog
ascii_art("woof") # Will print one dog
How this package was created
.
├── .github
│ └── workflows
│ ├── test_one.yaml
│ ├── test_two.yaml
│ ├── test_three.yaml
│ └── test_four.yaml
├── src
│ └── ascii_art_TNH
│ ├── __init__.py
│ ├── __main__.py
│ ├── ascii_art.py
│ ├── gallery.py
│ └── noises.py
├── tests
│ ├── __init__.py
│ ├── input_parse_test.py
│ ├── moo_test.py
│ ├── wrong_input_test.py
│ └── get_noise_test.py
├── .gitignore
├── README.md
├── pyproject.toml
└── requirements.txt
How to install and use this package
Prerequisites
- Python (version 3.6 or later)
- pip (Python package installer)
- pipenv (for managing virtual environments)
Installation
You can find our package on PyPI: Ascii_Art_TNH
To install the package, use pip:
pip install Ascii_Art_TNH
How to run unit tests
Test are included within the 'test' directory. To run these test...
- Install pytest in a virtual enviorment
- Run the test from the main project directory:
python3 -m pytest
How to contribute
Clone the repository
git clone https://github.com/software-students-fall2024/3-python-package-tnh-tnh-needs-help.git
cd 3-python-package-tnh-tnh-needs-help
Set up the virtual environment and install any dependencies
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Build and test the package
python -m build
python -m pytest
Continuous integration
This project uses a continuous integration workflow that builds and runs unit tests automatically with every push of the code to GitHub.
Team Members
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 ascii_art_tnh-1.0.3.tar.gz.
File metadata
- Download URL: ascii_art_tnh-1.0.3.tar.gz
- Upload date:
- Size: 28.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49e4419f75ab1357706937ecc1c1ac64be3a13ffcdf495b9eeddb29744f9a1ce
|
|
| MD5 |
6fe700c29fb65a057e5425140cb6f5d7
|
|
| BLAKE2b-256 |
2f0b3ff47a7a1803c00a316dcdd65a70486fc9eeab08acaf1330d9cf048c9743
|
File details
Details for the file ascii_art_tnh-1.0.3-py3-none-any.whl.
File metadata
- Download URL: ascii_art_tnh-1.0.3-py3-none-any.whl
- Upload date:
- Size: 18.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
383c02203931e4fe98ddcba263043364eab1654d236cb231e16e80e76a8fe700
|
|
| MD5 |
49edf4edc8b78bc8746332b288e1eb3d
|
|
| BLAKE2b-256 |
848561f8e626cd96a83444ce1128a0a991cb0e743e08e21e9f4b8c535ad170ac
|