Skip to main content

Another client for the Spotify Web API

Project description

Another wrapper for the Spotify Web API, built on top of requests and requests_oauthlib.

I wrote this package as a kind of “code generation experiment”: the code (and doc) of Spotify class was almost entirely generated using a script that scrapes the official Spotify Web API documentation.

For scripts and desktop apps, this package (optionally) includes a flask server (meant to be run locally) to handle user authorization without requiring the user to manually copy and paste the OAuth2 callback URL (containing the token) from the browser to your app.

  • Free software: MIT license

Installation

If you don’t need the authorization flask app:

pip install spotipie

otherwise:

pip install spotipie[auth-app]

Usage

You first need to create an OAuth2 session and obtain an authorization token for it. There’s a different OAuth2 session class for each of the three OAuth2 authorization flows supported by the Spotify API (see Authorization Flows):

  • ClientCredentialsSession

  • AuthorizationCodeSession

  • ImplicitGrantSession

Then you can wrap the session with a Spotify object.

Examples

Documentation

https://spotipie.readthedocs.io/

Changelog

Project details


Download files

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

Source Distribution

spotipie-0.1.0.tar.gz (3.4 MB view hashes)

Uploaded Source

Built Distribution

spotipie-0.1.0-py2.py3-none-any.whl (34.1 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page