Skip to main content

An APIwrapper for slack with python.

Project description

An API wrapper with Slack written in Python.

Key feature

  • Modern Pythonic API using async and await.
  • API and interactive components of the platform by utilizing websockets.

Document

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_message

on_channel_create

on_channel_create

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

wsslack.py-1.0.1.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

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

wsslack.py-1.0.1-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

Details for the file wsslack.py-1.0.1.tar.gz.

File metadata

  • Download URL: wsslack.py-1.0.1.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for wsslack.py-1.0.1.tar.gz
Algorithm Hash digest
SHA256 cbb495f4a3c97b8bd65e0700c67647e5ba71d2f8679c0351b22ca15f5993d05f
MD5 cde54f7d59c948281a147bdb92ddeee8
BLAKE2b-256 3df050bc6ba42fd414a8d244e3ec7b3635ef2c44f38a8357b56ff273e99982de

See more details on using hashes here.

File details

Details for the file wsslack.py-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: wsslack.py-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 19.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for wsslack.py-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9136aeeca565bd00eb43cd3fc117ba878d27d1dc73bd8d7e745bcbad495ee25d
MD5 4d1c4fe821ac0738ffea6b6291615f1d
BLAKE2b-256 2866858a48af6852438d420bfb1629f2444c8a3f098ec8a9d9640c203a057d0a

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