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.6.tar.gz (5.1 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.6-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: debugsnacks-0.1.6.tar.gz
  • Upload date:
  • Size: 5.1 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.6.tar.gz
Algorithm Hash digest
SHA256 b0fdeb2c866f4475205676e47b5b3d6283994a78881848aa5da7073381192922
MD5 b3f54eec2dda59657d82af41c8e99f26
BLAKE2b-256 a1a4a7fb829d7b88c39920ac6fcc8e0dfb2fb77753e3c37f38434052e5fe4733

See more details on using hashes here.

File details

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

File metadata

  • Download URL: debugsnacks-0.1.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3c892c20f9983b6a783d5b0a28dda313447b7868ecd0c37e9aafc83f359d3975
MD5 476b39eb3ea39637de99fa263215e9ee
BLAKE2b-256 15a24ed0e516ef9d72274408fb0c822c5d59812761f5c2d59b0d08ce811630b7

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