Skip to main content

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

Run Moo Test Run input_parse_test Run wrong_test Run get_noise_test

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:

  1. Print Art Animal: Displays ASCII art of the animal along with its name.
  2. Animal Sounds: Outputs the corresponding sound after printing the ASCII animal.
  3. Surprise Cow: Randomly shows up with an ASCII art representation and a “moo”.
  4. 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...

  1. Install pytest in a virtual enviorment
  2. 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

Hugo
Nuzhat
Melanie
Tamara

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ascii_art_tnh-1.1.4.tar.gz (28.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ascii_art_tnh-1.1.4-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

Details for the file ascii_art_tnh-1.1.4.tar.gz.

File metadata

  • Download URL: ascii_art_tnh-1.1.4.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

Hashes for ascii_art_tnh-1.1.4.tar.gz
Algorithm Hash digest
SHA256 8c9e8fa600e9bde6681497b56ab40a04ba0b7a9cca878e8bc161b4facdb8e948
MD5 29f6e0764df6d59f291fad44c4cd9eb7
BLAKE2b-256 33c9e31ff5be6a6b87e103d321d851a7fe3d3f32303059dcf31430efc976eae0

See more details on using hashes here.

File details

Details for the file ascii_art_tnh-1.1.4-py3-none-any.whl.

File metadata

  • Download URL: ascii_art_tnh-1.1.4-py3-none-any.whl
  • Upload date:
  • Size: 18.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.11

File hashes

Hashes for ascii_art_tnh-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 71c9aa357517a21ebf6469a848b40264858ffa548d3e7cce41f586a7e0d85c3f
MD5 bd0145d978779a8a3e57261ef886be44
BLAKE2b-256 0c0a131052bb9fa42b215910c9fcf5603e9c68d6c9ce94e75458600b78e78c2b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page