Skip to main content
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-asyncio is a full-featured Python interface for the Slack API. Slacker is a fork of slacker to asyncio.

Examples

import asyncio
from slacker import Slacker

@asyncio.coroutine
def run():
    slack = Slacker('<your-slack-api-token-goes-here>')

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

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

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

loop = asyncio.get_event_loop()
loop.run_until_complete(run())

Installation

$ pip install slacker-asyncio

Release History

This version
History Node

0.8.7

History Node

0.8.6

Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
slacker-asyncio-0.8.7.tar.gz
(5.5 kB) Copy SHA256 Hash SHA256
Source None May 28, 2016

Supported By

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 Google Google Cloud Servers DreamHost DreamHost Log Hosting