/spotify_python

A simple dbus spotify api for python

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Spotify python

Control your spotify client using an easy-to-use dbus interface for python 3!

Disclaimer: This only works on DBus-enabled systems, like most linux distrubutions.

Usage

>>> from spotify import Spotify
>>> spotify = Spotify()
>>> print(spotify.track)
some song - an artist
>>> spotify.next()

Installation

Make sure the python module dbus is installed correctly:

Arch linux: sudo pacman -S python-dbus

Debian: sudo apt install python-dbus

$ pip install git+https://github.com/alvesvaren/spotify_python