Skip to main content

A playful Python utility library for fun, facts, and chaos.

Project description

🍿 DebugSnacks

A playful Python utility library that adds fun, humor, facts, and controlled chaos to your debugging and development workflow.

DebugSnacks is not here to fix your bugs. It’s here to keep you sane while fixing them 😄


✨ Features

  • 🎲 Random fun facts or developer excuses
  • 😏 Sarcastic, dramatic, or proud messages
  • 👨‍👧 Classic programmer dad jokes
  • 🕒 Time-based mood reactions
  • 🔥 Adjustable chaos levels
  • 🚪 Dramatic exits for your scripts

Perfect for:

  • Debug sessions
  • Demo scripts
  • CLI tools
  • Easter eggs in internal tools
  • Stress relief during late-night coding

📦 Installation

pip install debugsnacks

🚀 Quick Start

import debugsnacks

debugsnacks.auto()

Example output:

🎲 Toybox warming up...

📌 Fun fact: 💻 The first computer bug was an actual moth.

🧩 Available Modules & Usage

🎲 auto() — Surprise Me

Randomly prints a fun fact or a developer excuse.

debugsnacks.auto()

🐞 excuse() — Developer Excuses

Prints a random classic developer excuse.

debugsnacks.excuse()

Example:

It works on my machine.

📌 fact() — Fun Facts

Prints a random fun or nerdy fact.

debugsnacks.fact()

Example:

📌 Fun fact: 🐙 Octopuses have three hearts.

😏 say(text, mood="sarcastic")

Say something with attitude.

Supported moods:

  • sarcastic (default)
  • proud
  • dramatic
  • casual
debugsnacks.say("Build completed", mood="proud")

Example:

✨ Build completed. Look at you go!

👨‍👧 dadjoke() — Programmer Dad Jokes

Prints a random programming dad joke.

debugsnacks.dadjoke()

Example:

Why do programmers prefer dark mode? Because light attracts bugs.

🕒 react() — Time-Based Mood Reaction

Prints a message based on the current time.

debugsnacks.react()

Possible outputs:

  • Late night advice
  • Morning coffee motivation
  • Afternoon grind encouragement
  • Evening coding hype

🔥 chaos(level=1) — Control the Chaos

Introduce controlled chaos into your program.

Chaos levels:

  • 0 → Chaos disabled
  • 1 → Minor chaos (default)
  • 2+ → MAXIMUM CHAOS 🔥
debugsnacks.chaos(2)

Output:

🔥 MAXIMUM CHAOS. MAY THE ODDS BE EVER IN YOUR FAVOR.

🚪 exit(style="dramatic") — Exit with Style

Exit your script dramatically.

Available styles:

  • dramatic (default)
  • theatrical
  • quiet
debugsnacks.exit("theatrical")

⚙️ Configuration (Experimental)

debugsnacks.config(verbosity="fun", chaos=1)

⚠️ Currently reserved for future behavior customization.


🧪 Example Test Script

import debugsnacks

debugsnacks.auto()
debugsnacks.say("Tests passed", "dramatic")
debugsnacks.dadjoke()
debugsnacks.react()
debugsnacks.chaos(1)
debugsnacks.exit()

🛠 Requirements

  • Python 3.8+
  • No external dependencies 🎉

📄 License

MIT License © Mohammad Razi


⭐ Why DebugSnacks?

Because debugging doesn’t have to be miserable.

Add a little humor. Add a little chaos. Add DebugSnacks 🍿


Happy debugging 😄

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

debugsnacks-0.1.8.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

debugsnacks-0.1.8-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file debugsnacks-0.1.8.tar.gz.

File metadata

  • Download URL: debugsnacks-0.1.8.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for debugsnacks-0.1.8.tar.gz
Algorithm Hash digest
SHA256 639b61c3fd6ffd71a79933725bca8ae5babb3303fa8c4a061658f6561e4451d1
MD5 b94b311fa40a7110358fc70b0fbb13f1
BLAKE2b-256 d41201e4a735e2e71f41ab4b32c13f28eacd3dd1dac394c86adf1af59028b066

See more details on using hashes here.

File details

Details for the file debugsnacks-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: debugsnacks-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for debugsnacks-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 ca2e9c69474642e9c3b1d4920a49374cd3eecaf6939e0a86200ed4c8b73f47b3
MD5 4b80e3c9ebd658173e5318489342770a
BLAKE2b-256 da031ad56d54d51048bfd0ace0ec1ae37a387e19d316fbc57c00ad77d880c967

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