A fun little package inspired by a very good dog named Hank.
Project description
🐶 Hank
Hank is a playful and educational Python package inspired by a very good dog. It’s perfect for learning package structure, object-oriented programming, and integrating libraries like pandas, numpy, and pytest.
📦 Features
- Greet and interact with Hank
- Track Hank’s treats using a
pandasDataFrame - Analyze treat stats and timestamps
- Bark, fetch toys, and sleep
- Easily extendable for more fun behavior
🔧 Installation
From Pypi:
pip install hank
From Source:
git clone https://github.com/yourusername/hank.git
cd hank
python -m venv .venv
source .venv/bin/activate # or .venv\Scripts\activate on Windows
pip install -e[dev].
Running Tests
pytest
Example Usage
from hank import Hank
h = Hank(name="Hank", favorite_toy="stick")
print(h.greet()) # "Hi! I'm Hank, a 3-year-old good boy who loves stick!"
print(h.bark()) # "Woof! 🐾"
print(h.fetch("frisbee")) # "Hank fetches the frisbee and brings it back to you!"
h.give_hank_treat("bacon", 2) # Adds to treat log
print(h.get_treat_log()) # View treat log as a pandas DataFrame
Contributing
Contributions are welcome! Here’s how to get started:
- Fork the Repo
- Set up a virtual environment and install dependencies:
pip install -e .[dev]
pre-commit install
- Create a new branch off of Dev
git checkout dev
git pull origin dev
git checkout -b feature/my-feature
- Make changes and run tests and linters
black . && flake8 . && mypy . && pytest
- Commit and push your changes
git push origin feature/my-feature
- Open a PR to merge into Dev
Dependencies
pandasnumpypytest
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 hank-0.1.7.tar.gz.
File metadata
- Download URL: hank-0.1.7.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0fa09b4e7f70991b6dc57c6226630c6fd91db09dc1bd5af1b34fd29fd314aaa
|
|
| MD5 |
a9f8781d9318dd7597bd6f91b675f2a6
|
|
| BLAKE2b-256 |
664074f9ebd776fe10dcd2c5ebbbbccb35e10ba337d814256ae4c62e0e068af8
|
File details
Details for the file hank-0.1.7-py3-none-any.whl.
File metadata
- Download URL: hank-0.1.7-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea8eaa7d10b7a0413778577823b34024b07fafc5abad070239310f4bd9073904
|
|
| MD5 |
c9b1a9efea6349e35347b4731cb8aaed
|
|
| BLAKE2b-256 |
87305f60007710b6c98be3dc4d0d60b688ae642cbca1ae2e20ba1a6ab9a4f8a2
|