Skip to main content

send slack music notifications from itunes or spotify

Requirements

  • OS X

  • iTunes or Spotify

Installation

Using PIP via PyPI:

pip install slack-tunes

Using PIP via Github:

pip install git+https://github.com/josegonzalez/python-slack-tunes.git#egg=slack-tunes

Usage

Export a SLACK_API_TOKEN, as shown on their tokens page, and then execute the binary:

export SLACK_API_TOKEN="YOUR_TOKEN"
slack-tunes

Slack tunes will run in the foreground, and can be terminated at any time. It will update the status at most every 10 seconds, and will clear your status if no music is playing.

You can also specify multiple tokens via comma-delimiter. This is useful for notifying multiple slack teams.

export SLACK_API_TOKEN="YOUR_TOKEN,YOUR_OTHER_TOKEN"
slack-tunes
demo of slack-tunes output

Metadata

Release files for slack-tunes 0.4.1

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

Source distribution (sdist)

Source distribution for slack-tunes 0.4.1
File Size Uploaded
slack-tunes-0.4.1.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for slack-tunes 0.4.1
File Interpreter ABI Platform
slack_tunes-0.4.1-py2-none-any.whl Python 2 none any Details

Total release size: 11.7 kB

Release files / slack-tunes-0.4.1.tar.gz

Download URL slack-tunes-0.4.1.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
eba42cb9216ea5f5df885782f0763baa8435ef7dc6facab2337682de3afbd6e5
BLAKE2b-256 checksum
How to use checksums
d4eb34d287823a44027ae7d5d99cdedf5b5f62e9e4e203fd16543acda6138349
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/2.7

Release files / slack_tunes-0.4.1-py2-none-any.whl

Download URL slack_tunes-0.4.1-py2-none-any.whl
Size 6.8 kB
Tags Python 2
SHA-256 checksum
How to use checksums
afa6b13b7fc8b9aaf74cd33b6955df726d0c5589783186d6d6b43daac7107c0d
BLAKE2b-256 checksum
How to use checksums
4c7672cee99864c91175568ba7b63c1163f4b9ed6fd51ed47f435f53d8b58b1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/2.7

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.2

2 release files

0.0.1

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