Python (a)sync Slack API library
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
For more examples see the examples folder.
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.
- Asyncio with aiohttp.
- Curio with asks (In development).
- Trio with asks (In development).
- Twisted with treq (In development).
The library also provide an abstract base class on which to built I/O implementation.
- Allow testing without installing sync I/O requirements
0.5.0 ` * Support for new slack request signing (
sansio.validate_request_signatureand
exceptions.InvalidSlackSignature) 0.4.2
` * Support incoming action of type
message_action0.4.1
` * Support incoming action of type
dialog_submission. 0.4.0
` * Support sending json for selected slack methods. 0.3.5
` * Add
subtypeargument to
events.MessageRouter.register. * Fix routing bug for message with
text=None. 0.3.4
` * Refactor tests * Create pytest plugin with useful fixtures. 0.3.3
` * Add
minimum_timeargument to
SlackAPI.iterin order to force a minimum elapsed time between two call to the API 0.3.2
` * Add conversation & dialog methods in Enum. * Fix
not_authedwhen using rate limit retry. 0.3.1
` * Bugfix for
actions.Actionand
actions.Router. * Bugfix in data serialization for response urls
https://hooks.slack.com/. 0.3.0
` * Bugfix for
commands.Router. * New
events.MessageRouterfor
events.Messagerouting based on regular expression. * Rename
events.Routerto
events.EventRouter. * Change
TypeErrorto
ValueErrorin
events.EventRouter.register. * Bugfix for threaded messages. 0.2.2
` * Fix routing bug in
events.Router. * Inherit from
Exceptioninstead of
BaseExecptionin custom exceptions. 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