Skip to main content

(a)sync Slack API library

Project description

Python (a)sync Slack API library

Documentation Status Travis-ci status PyPI status Coverage 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[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.

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

Changelog

0.2.1

  • 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


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.2.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

slack_sansio-0.2.2-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file slack-sansio-0.2.2.tar.gz.

File metadata

File hashes

Hashes for slack-sansio-0.2.2.tar.gz
Algorithm Hash digest
SHA256 c7b2ee6c423465d146c79ce1f076375eed710aee48d8e026dc43efdc3d783a3b
MD5 8feae08cdd29d9c47835e72a3162c8af
BLAKE2b-256 c694513c522699d1aea45b30bcb1ac957e94e127f5b8953a483126b1168c029a

See more details on using hashes here.

File details

Details for the file slack_sansio-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for slack_sansio-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1e55179b4f0e64e1c1935e2636757c6279d393dc13ae2aa05bae15aa48552814
MD5 93c6853e62c15487894fa19a611e2a10
BLAKE2b-256 b04fcc633b18e5f8969d4ea287ca3c7b31f0b1a130587d70e260e9808e8431c3

See more details on using hashes here.

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