An APIwrapper for slack with python.
Project description
An API wrapper with Slack written in Python.
Key feature
- Modern Pythonic API using
asyncandawait. - API and interactive components of the platform by utilizing websockets.
Install
$ pip install wsslack.py
example
import slack
client = slack.Client(
user_token="...",
bot_token="...",
token="..."
)
@client.event
async def on_message(message: slack.Message):
if message.content.startswith("!"):
await message.channel.send("Hello.")
@client.event
async def on_channel_create(channel: slack.Channel):
await channel.send("Hello!")
client.run()
on_message
on_channel_create
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wsslack.py-1.1.0.tar.gz
(15.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wsslack.py-1.1.0.tar.gz.
File metadata
- Download URL: wsslack.py-1.1.0.tar.gz
- Upload date:
- Size: 15.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8bde651c403edc4f5d241e58408e0820ba46ed08e82b9341fb3080f57cc543e5
|
|
| MD5 |
e86eb9c1cc741e76ef6cbaf5ea6bcaf0
|
|
| BLAKE2b-256 |
8cf8dc28647b42e4e0136c498d1ed80f68c2fa5f11b8123707ceff4c26ccef8e
|
File details
Details for the file wsslack.py-1.1.0-py3-none-any.whl.
File metadata
- Download URL: wsslack.py-1.1.0-py3-none-any.whl
- Upload date:
- Size: 19.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b83f985fc285b033c32a987550e0fb2c64c6a19925d5338938e714d7229a94dd
|
|
| MD5 |
23446fd4fb6af9bb5415505e37fe344d
|
|
| BLAKE2b-256 |
c650dfa6d1e1c53fbcc393064421c7150d595dcaca28aefa1fccbc854967b92f
|