Print Burmalda when a Python program crashes.
Project description
burmalda
burmalda is a tiny Python library that prints Burmalda to the console when
your program exits because of an unhandled exception.
Installation
pip install burmalda
Usage
Install the exception hook near the start of your program:
import burmalda
burmalda.install()
raise RuntimeError("Something broke")
The program will still show the normal Python traceback, and Burmalda will be
printed to standard error before it.
API
burmalda.install(message="Burmalda")
Installs the global exception hook and returns the previous sys.excepthook.
Calling it more than once is safe.
burmalda.uninstall()
Restores the exception hook that was active before burmalda.install().
burmalda.burmalda(message="Burmalda")
A context manager that installs the hook temporarily:
import burmalda
with burmalda.burmalda():
raise RuntimeError("Something broke")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file burmalda-1.0.0.tar.gz.
File metadata
- Download URL: burmalda-1.0.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b90f21cfdab4013010f5f738a92065bede11f386da51771a109592bdd280c18
|
|
| MD5 |
f4fc1c58e34fbd0aa9196f596fff9468
|
|
| BLAKE2b-256 |
90962202fcc1149cc02f6a2be3751553505b39b11846e68ee30109266cbc14cd
|
File details
Details for the file burmalda-1.0.0-py3-none-any.whl.
File metadata
- Download URL: burmalda-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9d54f7588e66d912a75a95c65ed350aae0813a304880c06abbed02af7a317ad
|
|
| MD5 |
e905153aeb4d059270f67f8551828bad
|
|
| BLAKE2b-256 |
6d86983a874a409247f9a8befe311ee322332aceb77dcc4294c47dffaa0ea838
|