AsyncBots
This library provides a simple asyncio based interface for writing RTM <https://api.slack.com/rtm> bots for Slack. Many distinct functions can be run through a single Slack bot plugin, triggered by user defined commands (e.g. !myCommand).
Example
A bot which can be triggered by the message !greet Guido looks like this:
from asyncbots.bot import SlackBot, register
from asyncbots.command import MessageCommand
from pyparsing import alphas, Word
class MyBot(SlackBot)
def __init__(self):
self.name = 'My Bot'
# Match 'greet' followed by any word
self.expr = 'greet' + Word(alphas).setResultsName('user')
@register()
async def handler(self, sender, channel, parsed_message):
return MessageCommand('Hello ' + parsed_message['user'])
Metadata
Release files for asyncbots 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| asyncbots-0.1.8.linux-x86_64.tar.gz | 27.9 kB | Without provenance | Details for asyncbots-0.1.8.linux-x86_64.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| asyncbots-0.1.8-py3-none-any.whl | Python 3 | none | any | Details for asyncbots-0.1.8-py3-none-any.whl |
Total release size: 43.5 kB
Release files / asyncbots-0.1.8.linux-x86_64.tar.gz
| Download URL | asyncbots-0.1.8.linux-x86_64.tar.gz |
|---|---|
| Size | 27.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fdc0b37f127b4c7f92bbe606347b0783d2b34ddc4112747d7f6cfad9570b3501
|
|
BLAKE2b-256 checksum How to use checksums |
d390c151db6f20d47c4a9b708b509a7bb0f1cfe71298e130e1c790e546715810
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0
|
Release files / asyncbots-0.1.8-py3-none-any.whl
| Download URL | asyncbots-0.1.8-py3-none-any.whl |
|---|---|
| Size | 15.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e58d2e46722600c9429ecc72e4028be08d8ff4815577998514ff1ef17a4d9520
|
|
BLAKE2b-256 checksum How to use checksums |
f74f08988c4f6766ab5300ab30f4aa6916befa87f2f7b02fd9d1169b52e1bfa0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0
|
Security for asyncbots 0.1.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.