Skip to main content

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

from slack_print import SlackPrint

sp = SlackPrint('<your-slack-access-token>', '#general')

# Print
sp.print('hello world')

# Upload a file

## 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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for python-slack-print, version 1.0.5
Filename, size File type Python version Upload date Hashes
Filename, size python_slack_print-1.0.5-py3.6.egg (3.2 kB) File type Egg Python version 3.6 Upload date Hashes View
Filename, size python_slack_print-1.0.5.tar.gz (1.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page