Spotify connect - Librespot
librespot is an open source client library for Spotify. It enables applications to use Spotify's service to control and play music via various backends, and to act as a Spotify.
Note: librespot only works with Spotify Premium.