Skip to main content

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 pandas DataFrame
  • 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:

  1. Fork the Repo
  2. Set up a virtual environment and install dependencies:
pip install -e .[dev]
pre-commit install
  1. Create a new branch off of Dev
git checkout dev
git pull origin dev
git checkout -b feature/my-feature
  1. Make changes and run tests and linters
black . && flake8 . && mypy . && pytest
  1. Commit and push your changes
git push origin feature/my-feature
  1. Open a PR to merge into Dev

Dependencies

  • pandas
  • numpy
  • pytest

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

hank-0.1.6.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

hank-0.1.6-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file hank-0.1.6.tar.gz.

File metadata

  • Download URL: hank-0.1.6.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

Hashes for hank-0.1.6.tar.gz
Algorithm Hash digest
SHA256 c3deb3cf86793523ea72bc82d20023e2a090949aa9aee6794119349ba7160929
MD5 5f446dbaabdcf9de900d81cb064e9423
BLAKE2b-256 c18fa2a0e8933c3ebfe6e067ad8a2cf44c9c2110af6b95d98274f16eeaea565e

See more details on using hashes here.

File details

Details for the file hank-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: hank-0.1.6-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

Hashes for hank-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 97ad8da1f72f5c740b2f8d040eca2c508d676212cd658a2394af87224ed54732
MD5 08f7ae9d6bb83fb3a81de8ccfe8c201e
BLAKE2b-256 0d656700856b14f747d8dfcc76a8bc1f8a1f0fc6dc4f26a8d63f842f432b2165

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