Skip to main content

Your rubber duck debugger pet! Explain your code to Ducky.

Project description

Ducky 🐥

Your rubber duck debugger pet! Explain your code to Ducky while you work.

Ducky sits in a small floating window over your code. Feed him, let him sleep, give him a bath, or explain your bugs to him — he'll always have something to quack back!

Installation

pip install ducky_py

Note: Ducky requires Python 3.12 since it uses pygame. Run with py -3.12 yourfile.py

How to Use

Just add one line at the top of your Python file:

from ducky import show
import time

show()

while True:
    time.sleep(1)

#the while true loop keeps it on, just close the game with the X in the top right corner
# Now write your code as normal!
# Ducky will float over your screen while you work.

Buttons

Button What it does
🍞 Feed Feed Ducky so he's not hungry
💤 Sleep Let Ducky take a nap to restore energy
🛁 Bath Give Ducky a bath to cheer him up
🗣 Explain Type your code problem — Ducky will respond!

Stat Bars

Bar What it means
🍞 Hunger Keep this full by feeding Ducky
💛 Happiness Pet and interact with Ducky to keep him happy
💤 Energy Let Ducky sleep when this gets low
🛁 Cleanliness Give Ducky baths to keep this up

Control Ducky from your code

from ducky import show, feed, sleep, bath, explain

show()

feed()              # feed Ducky
sleep()             # put Ducky to sleep
bath()              # give Ducky a bath
explain("my loop is broken")  # Ducky will respond!

Why Ducky?

Rubber duck debugging is a real technique where you explain your code out loud to a rubber duck — the act of explaining it helps you find the bug yourself. Ducky makes it more fun! 🐥

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

ducky_py-0.1.2.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

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

ducky_py-0.1.2-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file ducky_py-0.1.2.tar.gz.

File metadata

  • Download URL: ducky_py-0.1.2.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.14.3 Windows/11

File hashes

Hashes for ducky_py-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f45ae363ac54a02a48b2b0c58d3c69670bc052a57565bdd353cb86e02c9dbf2c
MD5 f26d74c48a0449779b0b6c1927cd55e0
BLAKE2b-256 d1a7d2c56d895a9d989dd26e1cae5a3aba11dc849d96ff70a495197a044a8a85

See more details on using hashes here.

File details

Details for the file ducky_py-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: ducky_py-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.14.3 Windows/11

File hashes

Hashes for ducky_py-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8276ddf5842834d620e38acd425ee95c0ddce3e6fc833b9aa3f2ce6b46ade832
MD5 fea64675eab4712e3db4b518dcaaf819
BLAKE2b-256 4125b93c8ebb0f64a5b4224a5a482102c267a5039f03a9abaec3f23c3f3a8adf

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