This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Slack API client

Project Description

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')

# If you need to proxy the requests
proxy_endpoint = 'http://myproxy:3128'
slack = Slacker('<your-slack-api-token-goes-here>', http_proxy=proxy_endpoint, https_proxy=proxy_endpoint)

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

# Advanced: Use `request.Session` for connection pooling (reuse)
from requests.sessions import Session
with Session() as session:
    slack = Slacker(token, session=session)
    slack.chat.post_message('#general', 'All these requests')
    slack.chat.post_message('#general', 'go through')
    slack.chat.post_message('#general', 'a single https connection')

Installation

$ pip install slacker
Release History

Release History

This version
History Node

0.9.50

History Node

0.9.42

History Node

0.9.40

History Node

0.9.30

History Node

0.9.29

History Node

0.9.28

History Node

0.9.25

History Node

0.9.24

History Node

0.9.21

History Node

0.9.18

History Node

0.9.17

History Node

0.9.16

History Node

0.9.15

History Node

0.9.10

History Node

0.9.9

History Node

0.9.8

History Node

0.9.2

History Node

0.9.0

History Node

0.8.6.2

History Node

0.8.6

History Node

0.7.9

History Node

0.7.4

History Node

0.7.3

History Node

0.7.0

History Node

0.6.8

History Node

0.6.3

History Node

0.6.2

History Node

0.6.1

History Node

0.6.0

History Node

0.5.7

History Node

0.5.6

History Node

0.5.5

History Node

0.5.4

History Node

0.5.1

History Node

0.5.0

History Node

0.4.2

History Node

0.4.0

History Node

0.3.9

History Node

0.3.7

History Node

0.3.3

History Node

0.3.1

History Node

0.3.0

History Node

0.2.0

History Node

0.1.7

History Node

0.1.6

History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
slacker-0.9.50.tar.gz (7.5 kB) Copy SHA256 Checksum SHA256 Source May 26, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting