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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python_slack_print-1.0.5.tar.gz.
File metadata
- Download URL: python_slack_print-1.0.5.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b2e03b8a4515cb79c57e04185f3385ed5d7caf2719b3775d5a241ea44c5bfd0
|
|
| MD5 |
83e3b005843a0f39ba1ab8055d0ac8e8
|
|
| BLAKE2b-256 |
1b9d660a5182dbb503ec7379c2185166d23e7d1056723768b12430c3e736cc96
|
File details
Details for the file python_slack_print-1.0.5-py3.6.egg.
File metadata
- Download URL: python_slack_print-1.0.5-py3.6.egg
- Upload date:
- Size: 3.2 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a05feadda33096e17d78acd312d6a338365ec89cf2a49152ed8dcdd8d75f3d40
|
|
| MD5 |
094fc684d4bd8e7ad1be82ad8fd4832a
|
|
| BLAKE2b-256 |
dd78d2edbf6f152666b95f27b9ee68df743db7afce51c208cb02af3eba34cef2
|