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 Provenance Actions
crybaby-0.0.8.tar.gz 69.8 kB Without provenance Details for crybaby-0.0.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for crybaby 0.0.8
File Interpreter ABI Platform Actions
crybaby-0.0.8-py3-none-any.whl Python 3 none any Details for crybaby-0.0.8-py3-none-any.whl

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

Security for crybaby 0.0.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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