Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gfreezy/slacker-asyncio
Full-featured Python interface for the Slack API
https://github.com/gfreezy/slacker-asyncio
Last synced: 6 days ago
JSON representation
Full-featured Python interface for the Slack API
- Host: GitHub
- URL: https://github.com/gfreezy/slacker-asyncio
- Owner: gfreezy
- License: apache-2.0
- Fork: true (os/slacker)
- Created: 2015-12-20T08:45:01.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-07-28T16:44:49.000Z (over 6 years ago)
- Last Synced: 2024-07-17T22:32:09.405Z (4 months ago)
- Language: Python
- Homepage:
- Size: 241 KB
- Stars: 20
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
==================
Slacker-asyncio
==================
|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
========
.. code-block:: pythonimport asyncio
from slacker import Slackerasync def run():
with aiohttp.ClientSession() as session:
slack = Slacker('', session=session)# Send a message to #general channel
await slack.chat.post_message('#general', 'Hello fellow slackers!', as_user=True)# Get users list
response = await slack.users.list()
users = response.body['members']# Upload a file
await 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/