Skip to main content

crybaby

🥲 Python exception handler that sends error messages to Slack. 🚨

Package version Supported Python versions

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

slack_example.png

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)

Source distribution for crybaby 0.0.8
File Size Uploaded
crybaby-0.0.8.tar.gz 69.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for crybaby 0.0.8
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 release files

0.0.7

2 release files

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

2 release files

0.0.2

2 release files

0.0.1

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