(a)sync Slack API library
Project description
Python (a)sync Slack API library
Installation
Slack-sansio is available on PyPI.
$ pip3 install slack-sansio # No specific implementation requirements
$ pip3 install slack-sansio[requests] # Requests implementation requirements
$ pip3 install slack-sansio[aiohttp] # Aiohttp implementation requirements
$ pip3 install slack-sansio[curio] # Curio implementation requirements
$ pip3 install slack-sansio[trio] # Trio implementation requirements
$ pip3 install slack-sansio[treq] # Treq implementation requirements
$ pip3 install slack-sansio[full] # All implementations requirements
Quickstart
import slack
import pprint
import requests
from slack.io.sync import SlackAPI
session = requests.session()
slack_client = SlackAPI(token=TOKEN, session=session)
data = client.query(slack.methods.AUTH_TEST)
pprint.pprint(data)
For more examples see the examples folder.
I/O Implementations
Most people would want to use one of these implementations directly. For those that have an HTTP library which is not supported this library provide the base tools to ease the use of the Slack API.
Synchronous with request.
The library also provide an abstract base class on which to built I/O implementation.
Changelog
0.2.1 (dev)
Curio support (query and iterate)
Trio support (query and iterate)
Twisted support (query only)
0.2.0
Enum of slack API methods
0.1.0
Initial beta release
RTM API
Pagination
0.0.1
Initial development release
Project details
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
Built Distribution
File details
Details for the file slack-sansio-0.2.1.tar.gz
.
File metadata
- Download URL: slack-sansio-0.2.1.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf108858d1d18f250234043a22872c5b01a2a4784aa1deaff1c8cf7319697b7f |
|
MD5 | e367794711dde72767e521ea4ee00023 |
|
BLAKE2b-256 | 4b2df5586a14cdb2ff1d5588c2a6d72aebe742f66acca306184d3f957b783fc2 |
File details
Details for the file slack_sansio-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: slack_sansio-0.2.1-py3-none-any.whl
- Upload date:
- Size: 19.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09243453a1469c0a30184c42bab317c327f51a548f2a1a967dfa2fd60dd63a01 |
|
MD5 | 669cfd5fc38c0efa9cb87de8417d0772 |
|
BLAKE2b-256 | f9cbc53d47103b50e4f01f4fe39b6c47ea288e2d711e40fcf2b6a026890d36f8 |