Metadata-Version: 2.1
Name: crybaby
Version: 0.0.2
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-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.6.0
Description-Content-Type: text/markdown

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

## 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)
        print(e)
        pass


# unhandled exception
if __name__ == "__main__":
    crybaby.setup(
        slack_token="xoxb-sample-slack-token", slack_channel_id="SLACKCHANNELID"
    )
    handled_exception()
    unhandled_exception()
```
Then

![slack_example.png](./doc/slack_example.png)
