Skip to main content

prank

PyPI Downloads

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.

Features

  • 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.

Installation

pip install prank

No restart required.

Emotional damage starts immediately.

Usage

import prank

prank.install()

Congratulations.

Your future exceptions are no longer alone.

Now wait for your next bug.

Example

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.

API

prank.install()

Enable prank mode.

prank.uninstall()

Disable prank mode.

prank.is_installed()

Returns whether prank is currently installed.

FAQ

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()

License

Licensed under the MIT License.

No warranty.

Especially emotional warranty.

Read more in the disclaimer here.

Metadata

Release files for prank 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for prank 0.1.3
File Size Uploaded
prank-0.1.3.tar.gz 5.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for prank 0.1.3
File Interpreter ABI Platform
prank-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 11.6 kB

Release files / prank-0.1.3.tar.gz

Download URL prank-0.1.3.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0bd687c5cfcb5fa792f2a2a7bcc8e1e191171ed8724f4296831c14311a0e73f1
BLAKE2b-256 checksum
How to use checksums
1277b2575bab2bd598551168cf559e3225f58ef449c942a1d4b2f1db4574027d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / prank-0.1.3-py3-none-any.whl

Download URL prank-0.1.3-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
94be8f98d621756b8958d9efa6fb8453ddd267b65dbde641940c94cc10e42ab3
BLAKE2b-256 checksum
How to use checksums
7a77a841c359d9e8f04f161b76a1521e84c8822683a506d98aecb3562885fd41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release history Release notifications | RSS feed

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page