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
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.1.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.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ducky_py-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 0424b7d819a72a13e7c382edce0e897a2148f8b00140c57237538314e4e7fc4e
MD5 0e898862907a739714c0db044a741fe1
BLAKE2b-256 8d706c70f906646fbfb08b9c3288cb743fcab242990882d9f680c20dd1dc4a47

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ducky_py-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c65133eed01b75dcfb8518eec83c1d59dc68d840932e3d6d933b9db6ef54f71a
MD5 ad31f1d6fbb29dca77eb4d09c30afc65
BLAKE2b-256 2585844c75c398ecaba7dcb0ff6814f632c269387dae2d7f4b9a469bb35a5b7d

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