Python print for stdout and slack
Project description
# python_slack_print
## About
python_slack_print is a simple printer for both stdout and slack channel
## Examples
```python
from slack_print import SlackPrint
sp = SlackPrint('<your-slack-access-token>', '#general')
# Print
sp.print('hello world')
# Upload a file
sp.upload('hello.txt')
```
## Installation
```
$ pip install python_slack_print
```
## Tip
### Replace your print() with sp.print()
You can replace your print() with sp.print() with UNIX command.
Below is one of the simplest ways. (There must be a better way.)
```
sed -i -e "s/print(/sp.print(/g" <file-to-be-replaced>
```
## About
python_slack_print is a simple printer for both stdout and slack channel
## Examples
```python
from slack_print import SlackPrint
sp = SlackPrint('<your-slack-access-token>', '#general')
sp.print('hello world')
# Upload a file
sp.upload('hello.txt')
```
## Installation
```
$ pip install python_slack_print
```
## Tip
### Replace your print() with sp.print()
You can replace your print() with sp.print() with UNIX command.
Below is one of the simplest ways. (There must be a better way.)
```
sed -i -e "s/print(/sp.print(/g" <file-to-be-replaced>
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for python_slack_print-1.0.4-py3.6.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f4be30298aeb977364387d35d0e8009d108158f9b0994b3ef20f8e2d1e641b1 |
|
MD5 | d309b2c5138de2e9c08bfec654530071 |
|
BLAKE2b-256 | 98c38ed8a592167e0dcef39bef517c13011bbe6397be7b8f451cdcdc950b12ea |