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.
>>> from spotify import Spotify
>>> spotify = Spotify()
>>> print(spotify.track)
some song - an artist
>>> spotify.next()
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