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("cow") # Will print one cow
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
Metadata
Release files for Ascii-Art-TNH 1.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ascii_art_tnh-1.1.6.tar.gz | 28.5 kB | Without provenance | Details for ascii_art_tnh-1.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ascii_art_tnh-1.1.6-py3-none-any.whl | Python 3 | none | any | Details for ascii_art_tnh-1.1.6-py3-none-any.whl |
Total release size: 46.7 kB
Release files / ascii_art_tnh-1.1.6.tar.gz
| Download URL | ascii_art_tnh-1.1.6.tar.gz |
|---|---|
| Size | 28.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
491cce699dae829d8cc2156a978ca437c24473106eadcdd930ea2551093901ab
|
|
BLAKE2b-256 checksum How to use checksums |
1ff3097f574b4c79f8372a7e770610d34940c577a12d7a7e16b9dd01476842d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.11
|
Release files / ascii_art_tnh-1.1.6-py3-none-any.whl
| Download URL | ascii_art_tnh-1.1.6-py3-none-any.whl |
|---|---|
| Size | 18.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1529593e65a1756b34012ab9780b04864af891523758b9db6cbc7f1912894bf1
|
|
BLAKE2b-256 checksum How to use checksums |
6b3f478adfa1d5f1a662c50780a8d6426639c835bf1a85782415872f40ab264d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.11
|
Security for Ascii-Art-TNH 1.1.6
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.