Python interface to the Slack Real Time Messaging(RTM) API
pip install slacksocket
from slacksocket import SlackSocket
s = SlackSocket('<slack-token>',translate=True) # translate will lookup and replace user and channel IDs with their human-readable names. default true.
for event in s.events():
print(event.json)
from slacksocket import SlackSocket
s = SlackSocket('<slack-token>')
msg = s.send_msg('Hello there', channel_name='channel-name')
print(msg.sent)
True
Full documentation is available on ReadTheDocs