Skip to main content

(a)sync Slack API library

Project description

Python (a)sync Slack API library

Documentation Status Travis-ci status PyPI status

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[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 Implementation

Two I/O implementation are provided with the library. One synchronous built upon request and a second one built upon aiohttp.

The library also provide an abstract base class on which to built I/O implementation.

Changelog

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

slack-sansio-0.2.0.tar.gz (10.8 kB view hashes)

Uploaded Source

Built Distribution

slack_sansio-0.2.0-py3-none-any.whl (17.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page