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

Uploaded Python 3

File details

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

File metadata

  • Download URL: debugsnacks-0.2.1.tar.gz
  • Upload date:
  • Size: 8.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.2.1.tar.gz
Algorithm Hash digest
SHA256 511b6e278eedf0bef23f6b80dd6d59365e0fdd4ec20e786c9f45a62e4164c7c4
MD5 deac63149b6604b3694f873a58928a5a
BLAKE2b-256 6f9509e8bfc93fc24edea9936ac800adc1849dd921678d0dd2b1544ccc47482a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: debugsnacks-0.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 94af5d204298a91fd87cf248626718d1f3c95acd5a7195fac14be9ef36b06486
MD5 c09611c02af18299cc1c4fb3597ddb4d
BLAKE2b-256 1f339910dd2e296ba5b1d76e59d6252dd9436dc12723342b39eeb12adff0c601

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