Skip to main content

An APIwrapper for slack with python.

Project description

PyPI PyPI - License

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.1.0.tar.gz (15.5 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.1.0-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

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

Hashes for wsslack.py-1.1.0.tar.gz
Algorithm Hash digest
SHA256 8bde651c403edc4f5d241e58408e0820ba46ed08e82b9341fb3080f57cc543e5
MD5 e86eb9c1cc741e76ef6cbaf5ea6bcaf0
BLAKE2b-256 8cf8dc28647b42e4e0136c498d1ed80f68c2fa5f11b8123707ceff4c26ccef8e

See more details on using hashes here.

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

Hashes for wsslack.py-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b83f985fc285b033c32a987550e0fb2c64c6a19925d5338938e714d7229a94dd
MD5 23446fd4fb6af9bb5415505e37fe344d
BLAKE2b-256 c650dfa6d1e1c53fbcc393064421c7150d595dcaca28aefa1fccbc854967b92f

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