techartorg / slacker

Full-featured Python interface for the Slack API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Slacker

pypi_ build status_ pypi downloads_

image

About

Slacker is a full-featured Python interface for the Slack API.

Examples

from slacker import Slacker

slack = Slacker('<your-slack-api-token-goes-here>')

# Send a message to #general channel
slack.chat.post_message('#general', 'Hello fellow slackers!')

# Get users list
response = slack.users.list()
users = response.body['members']

# Upload a file
slack.files.upload('hello.txt')

Installation

$ pip install slacker

Documentation

https://api.slack.com/methods

Join the chat at https://gitter.im/os/slacker

About

Full-featured Python interface for the Slack API

License:Apache License 2.0


Languages

Language:Python 100.0%