slack-progress

A realtime progress bar for Slack


Keywords
slack, chatops, devops
License
MIT
Install
pip install slack-progress==0.5

Documentation

slack-progress

PyPI version

A realtime progress bar for Slack

screencap

Installing

pip install slack-progress

Usage

Create a SlackProgress object with your Slack token and channel name:

from slack_progress import SlackProgress
sp = SlackProgress('SLACK_TOKEN', 'CHANNEL_NAME')

Now you can simply wrap any iterator:

for i in sp.iter(range(500)):
    time.sleep(.2)

The bar position can also be set manually:

pbar = sp.new()
pbar.update(10)
time.sleep(1)
pbar.update(50)
time.sleep(1)
pbar.update(100)
time.sleep(1)