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.2.0.tar.gz (7.7 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.2.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for debugsnacks-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a256fa7fda334ebef2833cc6af87ebfd9b0609284c1b8c9706f3df4b695e16f0
MD5 c9faebdddda6b4eeccaed9df376ac31a
BLAKE2b-256 c5f333e42c6f43039bba2a1ba59aef6b8b1b9e1d9b08f2864cbd9472970dcd0e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: debugsnacks-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.5 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 90ab4d84160a218aac0e67112bd8eb062f490c0775b723662b59c2e20ede383d
MD5 6981227f04104e221f232a070f0f66b0
BLAKE2b-256 dce0c20e9f71528a405a597e6157fb085b38e8de1675cda55fb37e5df53cf020

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