Skip to main content

A CLI tool to archive many slack channels at once

Project description

slack-archiver-cli: A CLI tool to archive many slack channels at once

PyPi ver pytest pysen LICENSE budge

Basic Usage

UsageGIF

Installation

$ pip install slack-archiver-cli

Set token

$ export SLACK_BOT_TOKEN = "xoxb-your-slack-bot-token"

List channels with prefix

$ list-channels channel-prefix
channel-prefix-mychannel1
channel-prefix-mychannel2

Archive channels with prefix

$ archive-channels slackarchiver
slackarchiver-test1
slackarchiver-test2
2 channels found (prefix: slackarchiver)
Do you want to archive 2 channels? [Y/n] yes
Archived channel: slackarchiver-test1
Archived channel: slackarchiver-test2

Requirements

Version and Dependencies

  • Python >= 3.7
  • Dependencies:
    • python-dotenv
    • fire
    • slack-sdk

Slack Bot Token OAuth & Permission Scopes

  • channels:join
  • channels:manage
  • groups:write
  • im:write
  • mpim:write

License

This software is released under the MIT License, see LICENSE.

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-archiver-cli-1.1.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

slack_archiver_cli-1.1.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file slack-archiver-cli-1.1.1.tar.gz.

File metadata

  • Download URL: slack-archiver-cli-1.1.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.12 Darwin/21.3.0

File hashes

Hashes for slack-archiver-cli-1.1.1.tar.gz
Algorithm Hash digest
SHA256 0d03d65ab4593a516c2cacb0a86d9e8e6a14b84f931910f6eebfc3f8b47b6597
MD5 e3af045ed762dd3951aacc28f5d20559
BLAKE2b-256 d58aa31bfb4c5194f76ad32edb6c52ff0ef5743305f496e3460e03ebbcf6ccd1

See more details on using hashes here.

File details

Details for the file slack_archiver_cli-1.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for slack_archiver_cli-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 267783dfc74cafbdd3433e89dd33b6806d1a170816249a39c908e044e37887a1
MD5 b96dca538376c2360b3beccd263332f6
BLAKE2b-256 9909f9dad9c28323b8d3d8a7bb0dedb981bc67b2f50ae5746ed47ca925623590

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