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

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 .

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

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.5.tar.gz (3.6 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.5-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hank-0.1.5.tar.gz
  • Upload date:
  • Size: 3.6 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.5.tar.gz
Algorithm Hash digest
SHA256 2c3189438c9d4673c6fd01f6265b9a2239b865898b7b0cef079700fd1305d1cb
MD5 832326f5a8ded9d4e58b5c04924977bc
BLAKE2b-256 649887ff5b8ff80129327be1dc2d347aeeda7002d42255daab30d2b4b51f9b69

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hank-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 3.3 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5403b1db061f16eb7d23d64b965db7a1a92b586cf4259b709f9ed7db322efc70
MD5 bcb6200eb991264ab4c5cd8334e5c21d
BLAKE2b-256 01b23c90580d186bca56c33240259fd9ce76871ed4d870994b4755610a44b1b4

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