Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eth0izzle/print2slack
print() to Slack!
https://github.com/eth0izzle/print2slack
slack slack-webhook
Last synced: about 1 month ago
JSON representation
print() to Slack!
- Host: GitHub
- URL: https://github.com/eth0izzle/print2slack
- Owner: eth0izzle
- License: mit
- Created: 2018-01-08T01:55:28.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-08T18:15:13.000Z (almost 7 years ago)
- Last Synced: 2024-08-08T20:14:55.443Z (5 months ago)
- Topics: slack, slack-webhook
- Language: Python
- Size: 3.91 KB
- Stars: 12
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# print2slack
**`print()` to Slack**. A monkeypatch that prints all output to a Slack channel instead of stdout - just `import` and go!
![Demo](https://i.imgur.com/RW0NHaX.png)
## Installation
`pip install print2slack`
## Usage
1. Set your Webhook URL via an environment variable: `export SLACK_WH="https://hooks.slack.com/services/T7FCG2MW/B8P5H7C/9Za2ig0WdULOOZO17OX8G"`.
2. `import print2slack` in your project.
3. Call `print()` as you normally would and it'll end up in Slack!All customisations should be done via your integration settings.
## License
MIT. See [LICENSE](LICENSE).