Skip to main content

Python wrapper for libspotify

Project description

pyspotify provides a Python interface to Spotify’s online music streaming service.

With pyspotify you can access music metadata, search in Spotify’s library of 20+ million tracks, manage your Spotify playlists, and play music from Spotify. All from your own Python applications.

pyspotify uses CFFI to make a pure Python wrapper around the official libspotify library. It works on CPython 2.7 and 3.5+, as well as PyPy 2.7 and 3.5+. It is known to work on Linux and macOS. Windows support should be possible, but is awaiting a contributor with the interest and knowledge to maintain it.

libspotify’s deprecation

Note that as of May 2015 libspotify is officially deprecated by Spotify and is no longer actively maintained.

Spotify has published newer libraries intended for Android and iOS development, as well as web APIs to access track metadata and manage playlists. Though, for making apps with Spotify playback capabilities, on any other platform than Android and iOS, there is currently no alternative to libspotify.

libspotify has been the main way of integrating with Spotify since 2009, and is today a part of numerous open source projects and commercial applications, including many receivers and even cars. There’s no guarantees, but one can hope that the large deployment of libspotify means that the library will continue to work with the Spotify service for a long time into the future.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyspotify, version 2.1.2
Filename, size File type Python version Upload date Hashes
Filename, size pyspotify-2.1.2-cp27-cp27m-macosx_10_15_x86_64.whl (1.8 MB) File type Wheel Python version cp27 Upload date Hashes View
Filename, size pyspotify-2.1.2-cp27-cp27m-macosx_10_6_intel.whl (1.9 MB) File type Wheel Python version cp27 Upload date Hashes View
Filename, size pyspotify-2.1.2-cp37-cp37m-macosx_10_15_x86_64.whl (1.8 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size pyspotify-2.1.2-cp37-cp37m-macosx_10_6_intel.whl (1.9 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size pyspotify-2.1.2.tar.gz (153.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page