A Python package to calculate dog care recommendations based on species, weight, size, and age.
Project description
DogCare
Description
DogCare is a Python package that helps dog owners understand and manage their pet's daily needs.
Given a dog's species, weight, size, and age, the package calculates recommended daily water intake, food intake, and walks needed. It also generates personalized care tips, displays a full dog profile, and converts your dog's age into human years.
Whether you have a tiny Chihuahua puppy or a senior Labrador, DogCare gives you practical, science-based guidance to keep your dog healthy and happy.
About
This Python package helps dog owners to estimate the amount of walks, water, and food needed for their dogs based on inputs such as species, weight, age, and size. It also includes dog care tips and dog-to-human age conversion.
Given Dog(species, weight, size, age):
water_needed(dog)- Returns a string estimating daily water intake (liters/day) based on weight.
food_needed(dog, activity="normal")- Returns a string estimating daily food amount (kg/day). activity can be "low", "normal", or "high".
walks_needed(dog)- Returns a string recommending number of walks per day and minutes per walk (adjusted for seniors).
dog_profile(dog)- Returns a string displaying the dog's profile.
dog_tip(dog)- Returns a care tip string (puppy training reminders, senior care notes, under/overweight warnings).
human_years(dog)- Converts dog age to a playful “human years” estimate.
How to use the package
Installation
You can install this package directly from PyPI using pip:
pip install DogCare
Usage Example
Here is a complete example of how to import and use all the features of the DogCare package:
Import
from dogcare.dog import Dog
import dogcare.care as care
Create a Dog object
- Size must be "small", "medium", or "large", weight is in kg, age in years
my_dog = Dog(species="Golden Retriever", weight=30.0, size="large", age=5)
Calculate daily water intake
print(care.water_needed(my_dog))
Output:
💧🐕 Estimated water consumption: 1.95L/day
Calculate daily food intake
- Activity can be "low", "normal", or "high"
print(care.food_needed(my_dog, activity="high"))
Output:
🍽️ 🐕 Estimated food: 0.72 kg/day (activity: high)
Get walk recommendations
print(care.walks_needed(my_dog))
Output:
🚶🐕 Estimated walks: 3 walks/day, 30 mins each
Get Dog's profile
print(care.dog_profile(my_dog))
Output:
DOG PROFILE
Species: Golden Retriever
Weight: 30.0 kg
Size: large
Age: 5 years
Stage: Adult
Note: Large dogs require more exercise.
Get personalized care tips
print(care.dog_tip(my_dog))
Output:
Care Tips:
Your dog is in good condition!
Convert age to human years
print(care.human_years(my_dog))
Output:
🎂🐕 42 human years old
For Developers
If you want to contribute to the project, here is how you can set up your local development environment:
-
Clone the repository:
git clone https://github.com/swe-students-spring2026/3-package-jaguarundi.git cd 3-package-jaguarundi
-
Install pipenv and project dependencies:
pip install pipenv pipenv install --dev
-
Run tests using pytest:
pipenv run pytest
-
Build the package:
python -m build
Team
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 dogcare-0.0.1.tar.gz.
File metadata
- Download URL: dogcare-0.0.1.tar.gz
- Upload date:
- Size: 45.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f4cb47c30eb66a03641514b6f8693bdfa76116a6d083e67b8d02a121ce42ca9
|
|
| MD5 |
31fe4c4d20cfb1e54b826ebbc7c3f6b1
|
|
| BLAKE2b-256 |
bd4684fa94fe8e8fb076699c6456f384095953828e059de3a7d4f44d2d0a69a6
|
File details
Details for the file dogcare-0.0.1-py3-none-any.whl.
File metadata
- Download URL: dogcare-0.0.1-py3-none-any.whl
- Upload date:
- Size: 30.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a0d2881ca1b7bee553bd11b21a1d6ac72f507cffdedb7de73a1c781b4a14449
|
|
| MD5 |
58a2daeadca115447f64dbc779b82e07
|
|
| BLAKE2b-256 |
31e9b96d12946ecf74dcb438740143698a6aed7bf86ea1998319f8fe9ba82612
|