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

Uploaded Python 3

File details

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

File metadata

  • Download URL: debugsnacks-0.1.7.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.7.tar.gz
Algorithm Hash digest
SHA256 88fd822bd8c369ecc946e64c1e153d79c4a2c28ef9ab3d562d5bed71f4501bcf
MD5 7ee6f9f5ad40a29251e62f0c12abf0ef
BLAKE2b-256 5185211c10d9d5d9679d99fcfdeea30370847214130ed151f761e10768728388

See more details on using hashes here.

File details

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

File metadata

  • Download URL: debugsnacks-0.1.7-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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 fcb434cc8a1262d0d8f31f4a04e6da66b00103f5c11284aa868385cb68d8d598
MD5 a9de72147e708d23df07f522a3b69595
BLAKE2b-256 2332e3b2cda3c9453ac8732c2d54f35b433aa662157b6b2086e377a62fdb5b40

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