A fun package that displays animals on the terminal with movement and messages.
Project description
pyAnimals-ejh
Table of Contents
- Description
- PyPI Page
- Installation
- Virtual Environment & Dependencies
- Running pyAnimals_ejh
- Examples
- Contributing
- Team Members
Description
A fun package that displays animals on the terminal with movement and messages.
PyPI Page
You can find pyAnimals_ejh on PyPI HERE
Installation
Install pyAnimals_ejh with pip:
pip install pyAnimals_ejh
Virtual Environment & Dependencies
Set up the virtual environment:
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Running pyAnimals_ejh
To run pyAnimals_ejh, use the following command:
python -m pyAnimals_ejh
Examples
Parameter for all functions are: animal (str): name of animal.
***Note: Valid animal names include "cat", "bunny", "elephant", "rabbit". Only these can be used with our package.
- move(animal) Moves specified animal across the terminal screen
move("cat")
- race(animal) Displays race between player and specified animal
race("rabbit")
- randMessage(animal) Prints a random message for the specified animal
randMessage("bunny")
- print_fact(animal) Prints a random fact for the specified animal. Raises: ValueError if no facts are available for the specified animal.
print_fact("elephant")
See an example program that uses all functions HERE
Contributing
We welcome contributions to enhance and grow pyAnimals_ejh! Follow these steps to set up the development environment:
- Clone the Repository:
git clone https://github.com/software-students-fall2024/3-python-package-ejh.git
cd 3-python-package-ejh
- Set Up the Virtual Environment
source venv/bin/activate
pip install -r requirements.txt
- Build and Test the Package
python -m build
- Run Tests
pytest
- Add New Tests
If you add new functionality, include tests in the tests directory.
Team members
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
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 pyanimals_ejh-0.1.2.tar.gz.
File metadata
- Download URL: pyanimals_ejh-0.1.2.tar.gz
- Upload date:
- Size: 21.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa6e3fa616abf6138502b74f81e34fa5b67ff47d3c6a0ec37ba3464c9c440c12
|
|
| MD5 |
6bac67add23d775cff869303d4500360
|
|
| BLAKE2b-256 |
fc2360a4bfd402abb7a3a23368a1bf1e651c15302efb4fa25c1af7a7d848ac81
|
File details
Details for the file pyAnimals_ejh-0.1.2-py3-none-any.whl.
File metadata
- Download URL: pyAnimals_ejh-0.1.2-py3-none-any.whl
- Upload date:
- Size: 23.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d519e8803486d557f05bf47b618d0671229dc9bc7098af87e7a600007105601d
|
|
| MD5 |
200c377ffa1e0385763e7a9b2c49b38f
|
|
| BLAKE2b-256 |
f8ad3a16e51ac658301b86acea9c30feb5629c03ee648f054164c2655cbacc5a
|