Skip to main content

Slack API client with asyncio

Project description

version pypi build status pypi downloads

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

Documentation

https://api.slack.com/methods

Project details


Download files

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

Source Distribution

slacker-asyncio-0.8.6.tar.gz (5.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page