crybaby
🥲 Python exception handler that sends error messages to Slack. 🚨
Installation
pip install crybaby
Example
import crybaby
def unhandled_exception():
raise Exception("Unhandled exception")
def handled_exception():
try:
raise Exception("Handled exception")
except Exception as e:
crybaby.catch(e)
if __name__ == "__main__":
crybaby.setup(
slack_token="xoxb-sample-slack-token", slack_channel_id="SLACKCHANNELID"
)
handled_exception()
unhandled_exception()
Then
Metadata
Release files for crybaby 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| crybaby-0.0.8.tar.gz | 69.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| crybaby-0.0.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 73.4 kB
Release files / crybaby-0.0.8.tar.gz
| Download URL | crybaby-0.0.8.tar.gz |
|---|---|
| Size | 69.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5064666f2cb11c01f061a534fcfedc5195fee3c06adeacdb6d4ef6012fdee32e
|
|
BLAKE2b-256 checksum How to use checksums |
e5ec939cc01bda6098c83f74182495988ad24ef3f279e3cbb2f613175a6b507e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.15
|
Release files / crybaby-0.0.8-py3-none-any.whl
| Download URL | crybaby-0.0.8-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dd3cecd340bf529c712090dc842d326eaa2d19157828a0dfc8762283d3b8afb8
|
|
BLAKE2b-256 checksum How to use checksums |
83b47154c0f0e6c8b8d954e2e35d1082025afdc373cb3a9fcae41f55c41bea8e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.15
|