Skip to main content

prank

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 about disclaimer at here.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

prank-0.1.1.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prank-0.1.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file prank-0.1.1.tar.gz.

File metadata

  • Download URL: prank-0.1.1.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for prank-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4adbb9a0f72fe1881587b20935567ef29d1a2171e105bc3b6b63921200e09e46
MD5 def2f3b04f86b0b2710cae76eeafc77b
BLAKE2b-256 ce487e54f9bd88f741416f4e503d6e1bb0243289a5ec491772064c445abf8f55

See more details on using hashes here.

File details

Details for the file prank-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: prank-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for prank-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2bfdd6c2612abbddfd56d4f4266a7405f891b8acdde023dd9d001e168ef29012
MD5 4af3b3a75ff4c24b87ad6879d1243b7a
BLAKE2b-256 df5e0f12081f304b7fa8a5a7480887235f3f57bac90cd09ce4746e07037baad9

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