https://github.com/5monkeys/slacker
https://github.com/5monkeys/slacker
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/5monkeys/slacker
- Owner: 5monkeys
- License: apache-2.0
- Created: 2016-07-11T09:30:45.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-11T09:30:59.000Z (almost 10 years ago)
- Last Synced: 2025-01-26T06:41:13.091Z (over 1 year ago)
- Language: Python
- Size: 153 KB
- Stars: 0
- Watchers: 17
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
=======
Slacker
=======
|pypi|_
|build status|_
|pypi downloads|_
|gitter chat|_
.. image:: https://raw.githubusercontent.com/os/slacker/master/static/slacker.jpg
About
=====
Slacker is a full-featured Python interface for the `Slack API
`_.
Examples
========
.. code-block:: python
from slacker import Slacker
slack = Slacker('')
# 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')
Installation
============
.. code-block:: bash
$ pip install slacker
Documentation
=============
https://api.slack.com/methods
.. |build status| image:: https://img.shields.io/travis/os/slacker.svg
.. _build status: http://travis-ci.org/os/slacker
.. |pypi| image:: https://img.shields.io/pypi/v/Slacker.svg
.. _pypi: https://pypi.python.org/pypi/slacker/
.. |pypi downloads| image:: https://img.shields.io/pypi/dm/Slacker.svg
.. _pypi downloads: https://pypi.python.org/pypi/slacker/
.. |gitter chat| image:: https://badges.gitter.im/Join%20Chat.svg
.. _gitter chat: https://gitter.im/os/slacker?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge