Skip to main content

Generate word clouds for Slack channels!

Project description

Slack Wordcloud

This package is intended to take the history of a given Slack Channel, and run it through a Python Wordcloud API, and generate a wordcloud image. Compatibile with Python 3.7+.

This package uses the conversions.history Slack endpoint and will require a valid Slack API Token.

Installation

  1. pip install slack-wordcloud
  2. The docopt and wordcloud packages are also required. They should be automatically installed simulaneously with slack-wordcloud. However, if it fails you can do the following:
    • pip install docopt wordcloud

Classes

  1. SlackHistory(token, channel)
  2. GenerateWordCloud(options, *args, **kwargs)

Command Line Usage

  1. slack_wordcloud [-f] --channel <CHANNEL_NAME> [--token=SLACK_TOKEN]
    • -f will create a png file in your current directory of the output
    • --channel is required. Any valid slack channel.
    • --token optional argument if the token is already in your environment. Otherwise, you will need to pass it in.
  2. You will need to use Bot tokens and invite the Bot to the channel whose history you wish to fetch. This will hopefully be smoothed out in the future, but for now it's necessary due to the deprecation of the legacy tokens.

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

slack_wordcloud-1.0.4.tar.gz (4.4 kB view details)

Uploaded Source

File details

Details for the file slack_wordcloud-1.0.4.tar.gz.

File metadata

  • Download URL: slack_wordcloud-1.0.4.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for slack_wordcloud-1.0.4.tar.gz
Algorithm Hash digest
SHA256 340227742c33e4a5584821d857343be962d28a49c12b19ecd7b98e87063b3ed0
MD5 944e072878b320a525d446602e632ecc
BLAKE2b-256 e2ee198a1994d4a629e8a5c8a5663f4ba3f529c0b6c083f05bfd98c89765cfb6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page