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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: slack-sansio-0.2.0.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for slack-sansio-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ccd5c6ee0f6891143328f48212d22a4850764371c802cdae15f2772de8be25ff
MD5 afeeae658d006654bc2309da4f018876
BLAKE2b-256 c246e8b6407401449b84105c102fedc0e9a021c49a0018ab466fc45e7fdeb06f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for slack_sansio-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3b1b982f924430e60bc41faee03ec80ac10b0dd0a22641e652367b3597df6bc1
MD5 8e195fd4d0b5026b8846d86d00978eea
BLAKE2b-256 589a9a78093ad6d0bdf5e47246069886e36dd7768e76ff45485d5ca16d4a9ed9

See more details on using hashes here.

Supported by

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