print()
to Slack. A monkeypatch that prints all output to a Slack channel instead of stdout - just import
and go!
pip install print2slack
- Set your Webhook URL via an environment variable:
export SLACK_WH="https://hooks.slack.com/services/T7FCG2MW/B8P5H7C/9Za2ig0WdULOOZO17OX8G"
. import print2slack
in your project.- Call
print()
as you normally would and it'll end up in Slack!
All customisations should be done via your integration settings.
MIT. See LICENSE.