Metadata-Version: 2.1
Name: crybaby
Version: 0.0.8
Summary: Python exception handler that sends error messages to Slack.
Project-URL: homepage, https://github.com/jujumilk3/crybaby
Project-URL: bug-tracker, https://github.com/jujumilk3/crybaby/issues
Author-email: gyudoza <jujumilk3@gmail.com>
License-Expression: MIT
License-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Requires-Python: >=3.6.0
Requires-Dist: requests
Provides-Extra: dev
Requires-Dist: pytest; extra == 'dev'
Requires-Dist: twine; extra == 'dev'
Provides-Extra: test
Requires-Dist: black; extra == 'test'
Requires-Dist: isort; extra == 'test'
Requires-Dist: pytest; extra == 'test'
Requires-Dist: requests-mock; extra == 'test'
Description-Content-Type: text/markdown

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

</p>
<p align="center">
<a href="https://pypi.org/project/crybaby" target="_blank">
    <img src="https://img.shields.io/pypi/v/crybaby?color=%2334D058&label=pypi%20package" alt="Package version">
</a>
<a href="https://pypi.org/project/crybaby" target="_blank">
    <img src="https://img.shields.io/pypi/pyversions/crybaby?color=%2334D058" alt="Supported Python versions">
</a>
</p>

## Installation
```bash
pip install crybaby
```

## Example
```python
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](https://github.com/jujumilk3/crybaby/blob/main/doc/slack_example.png?raw=true)
