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

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
show()

# 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.0.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.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ducky_py-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 6a98490cd280aa501759c0318d2e6f4968f846a87ca6734c2e90228afe3013b7
MD5 922bf6c4b9175b6d29b135e9c2384a66
BLAKE2b-256 da75819d35696abd5b532e89340dcb11b5ede48bd0087dc8d81b907b10186f19

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ducky_py-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.0 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 abb6a5f7fb296525bff36ad89052cd3608c22892b0528ea9c5701135118f11db
MD5 f392a71f90a7996e3385c642f28ef3f7
BLAKE2b-256 fe714388d8a38d9c73c03171106ab3378714d2b47471397ecd763aaf2ddae367

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