slacker 0.14.0
pip install slacker
Latest version
Released:
Slack API client
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: Apache Software License (http://www.apache.org/licenses/LICENSE-2.0)
- Author: Oktay Sancak
- Tags slack, api
Classifiers
- Intended Audience
- License
- Natural Language
- Programming Language
Project description
About
Slacker is a full-featured Python interface for the Slack API.
Installation
$ pip install slacker
Examples
from slacker import Slacker
slack = Slacker('<your-slack-api-token-goes-here>')
# 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')
# If you need to proxy the requests
proxy_endpoint = 'http://myproxy:3128'
slack = Slacker('<your-slack-api-token-goes-here>',
http_proxy=proxy_endpoint,
https_proxy=proxy_endpoint)
# Advanced: Use `request.Session` for connection pooling (reuse)
from requests.sessions import Session
with Session() as session:
slack = Slacker(token, session=session)
slack.chat.post_message('#general', 'All these requests')
slack.chat.post_message('#general', 'go through')
slack.chat.post_message('#general', 'a single https connection')
Documentation
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: Apache Software License (http://www.apache.org/licenses/LICENSE-2.0)
- Author: Oktay Sancak
- Tags slack, api
Classifiers
- Intended Audience
- License
- Natural Language
- Programming Language
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file slacker-0.14.0.tar.gz
.
File metadata
- Download URL: slacker-0.14.0.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ae7c597025c114e202b5c880345f150f795665bfc638010cac614ede4ed5108 |
|
MD5 | 88939748345dfeb60f9fd774d8679e84 |
|
BLAKE2b-256 | cee5ea90f49e6d0905dcb2d0ab47e068b8f28f87dd97bd2e599164c693a52691 |