Skip to main content

Introduction

NOTE: This is an alpha version. Expect bugs and expect everything to change.

slackutils is a small library for simplifying some tasks with the Slack Web API. It is an extension of slackclient, and mostly contains methods for looking up users or channels by other parameters than their ID.

Installation

Recommended method is to install using pip. Note that we're still in alpha:

pip install --upgrade slackutils

Usage

Authenication

You need a slack token to use this library. slackutils looks for the token using one of two alternatives:

  1. All methods support a named parameter SLACK_API_TOKEN which is used to authenticate.
  2. If no named parameter is found, slackutils will look for the environment variable SLACK_API_TOKEN.

If neither of the above variables exist, an error will be raised.

Examples

Simplify looking up users and channels by other parameters than their ID

import slackutils
marketing_channel = slackutils.conversations.get(name='marketing')

from slackutils import get_user
dave = get_user(email='dave@example.com')

Release files for slackutils 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for slackutils 0.0.4
File Size Uploaded
slackutils-0.0.4.tar.gz 2.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for slackutils 0.0.4
File Interpreter ABI Platform
slackutils-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 6.9 kB

Release files / slackutils-0.0.4.tar.gz

Download URL slackutils-0.0.4.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
70c4382d90dfb9aa50c17a74a4c3c8288eca2f6235462f2d5137f1458e8e3e4e
BLAKE2b-256 checksum
How to use checksums
40fd924aade0b1d97b062aac152677ff05bc7500d71eccd1deaa01d48e7c7f60
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/40.0.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0

Release files / slackutils-0.0.4-py3-none-any.whl

Download URL slackutils-0.0.4-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d90e5a8c571713376d79ed5539d702ab9b5ddb11bd4a05efa1051fba0ba98fa
BLAKE2b-256 checksum
How to use checksums
6afab61db899dd491cf30a55e9b5a7d4271c9e9dae9b33827c2bbc1c8f9a283d
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/40.0.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page