Turns every uncaught exception into emotional damage.
Tested on countless unfortunate exceptions.
Side effects may include laughter, frustration, and questioning your life choices.
⚠️ If you use this in production, we need to have a serious talk, dude.
- Does absolutely nothing useful.
- Compatible with your worst debugging session.
- Zero dependencies.
- Zero configuration.
- Zero benefits.
- Maximum emotional damage.
- Rare (1%) and Ultra Rare (0.1%) messages.
- Makes every crash a little more memorable.
- Makes Python just a little bit more sarcastic.
pip install prankNo restart required.
Emotional damage starts immediately.
import prank
prank.install()Congratulations.
Your future exceptions are no longer alone.
Now wait for your next bug.
Possible outputs:
Traceback (most recent call last):
...
ZeroDivisionError: division by zero
Math is hard.
RuntimeError: Oops
Who wrote this code?
Or maybe...
AttributeError: ...
Maybe None isn't what you thought it was.
Or, if you're incredibly lucky...
Developer console unlocked.
prank.install()Enable prank mode.
prank.uninstall()Disable prank mode.
prank.is_installed()Returns whether prank is currently installed.
Does it fix bugs?
No.
Does it improve debugging?
Also no.
Then what's the point?
Because debugging is already painful. It might as well be funny.
Is this a serious project?
No.
Is this a joke?
Yes.
Then why is the code actually well-written?
...
Can I disable it?
Yes.
prank.uninstall()Licensed under the MIT License.
No warranty.
Especially emotional warranty.
Read more in the disclaimer here.