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.

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.0.tar.gz (5.6 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.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: prank-0.1.0.tar.gz
  • Upload date:
  • Size: 5.6 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.0.tar.gz
Algorithm Hash digest
SHA256 bee6edbe144533bafc70ada96f49a2c96acf9b4bb8941ec8bb29e3f0f1ac5e48
MD5 11ff4b122d86d4af6fa6baeccfa443ae
BLAKE2b-256 d9ea19e2d503333c8b47f155ad4d6529cd86a69bcb6c1496101e9a828529f3c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: prank-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.4 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7023fc7f0087d8ed4c688ab965ef9af235277c7febf7c1ee4da7fa3d90d2da13
MD5 2344c1e6b28fb6cdb7f1375e50e424cb
BLAKE2b-256 a93f1cbefd3724af36932323d56c3a7496844fe3706ac90f4d048ab9f759eff1

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