Skip to main content

A fun package that displays animals on the terminal with movement and messages.

Project description

Build Status

pyAnimals-ejh

Table of Contents

  1. Description
  2. PyPI Page
  3. Virtual Environment
  4. Installation
  5. Functions
  6. Example
  7. Contributing
  8. 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

Virtual Environment

Set up the virtual environment:

python3 -m venv venv
source venv/bin/activate

Installation

Install pyAnimals_ejh with pip:

pip install pyAnimals_ejh

Check that the package is installed with pip:

pip list

Functions

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.

  1. move(animal) Moves specified animal across the terminal screen
move("cat")
  1. race(animal) Displays race between player and specified animal
race("rabbit")
  1. randMessage(animal) Prints a random message for the specified animal
randMessage("bunny")
  1. 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")

Example

To view an example implementation of pyAnimals_ejh, see the example.py file

Contributing

We welcome contributions to enhance and grow pyAnimals_ejh! Follow these steps to set up the development environment:

  1. Clone the Repository:
git clone https://github.com/software-students-fall2024/3-python-package-ejh.git
cd 3-python-package-ejh
  1. Set Up the Virtual Environment
source venv/bin/activate
  1. Build and Test the Package
python -m build
  1. Run Tests
python -m pytest
  1. Add New Tests
    If you add new functionality, include tests in the tests directory.

Team members

Haley Hobbs
Emma Zhu
Jason Tran
Jenna Han

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

pyanimals_ejh-0.2.1.tar.gz (21.1 kB view details)

Uploaded Source

Built Distribution

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

pyAnimals_ejh-0.2.1-py3-none-any.whl (23.8 kB view details)

Uploaded Python 3

File details

Details for the file pyanimals_ejh-0.2.1.tar.gz.

File metadata

  • Download URL: pyanimals_ejh-0.2.1.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

Hashes for pyanimals_ejh-0.2.1.tar.gz
Algorithm Hash digest
SHA256 946f204f7b28d7dc95921711f0003f5dfce5ad11742514d05d79287f8a9622e5
MD5 62ef6ef5992867da536258894355c22a
BLAKE2b-256 1b6558a594451850360207937f790290d880ec8ac15bef9981adcee89b363208

See more details on using hashes here.

File details

Details for the file pyAnimals_ejh-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: pyAnimals_ejh-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 23.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for pyAnimals_ejh-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 83cecde39023ccca030b03a672aa8d969308753fede9ecc210f7245b451f8e33
MD5 15a8d63d85ebfb3b07505f4f8340c13f
BLAKE2b-256 fb7d2685a9bc77bed3d39e6c2f20c568f71dade6faca7996cb57f43a9b5dd9b4

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