semvec/pypi-packages huggingface dataset:
slacker-asyncio 0.8.7
Slack API client
License: http://www.apache.org/licenses/LICENSE-2.0
Keywords: slack api asyncio

==================
Slacker-asyncio
==================
|version|_
|pypi|_
|build status|_
|pypi downloads|_

About
=====

Slacker-asyncio is a full-featured Python interface for the `Slack API
<https://api.slack.com/>`_. Slacker is a fork of `slacker <https://github.com/os/slacker>`_
to asyncio.

Examples
========
.. code-block:: python

    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
============

.. code-block:: bash

    $ pip install slacker-asyncio

Documentation
=============

https://api.slack.com/methods

.. |version| image:: https://img.shields.io/pypi/pyversions/Slacker-asyncio.svg
.. _version: https://pypi.python.org/pypi/slacker-asyncio/
.. |build status| image:: https://img.shields.io/travis/gfreezy/slacker-asyncio.svg
.. _build status: http://travis-ci.org/gfreezy/slacker-asyncio
.. |pypi| image:: https://img.shields.io/pypi/v/Slacker-asyncio.svg
.. _pypi: https://pypi.python.org/pypi/slacker-asyncio/
.. |pypi downloads| image:: https://img.shields.io/pypi/dm/Slacker-asyncio.svg
.. _pypi downloads: https://pypi.python.org/pypi/slacker-asyncio/