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
Changelog
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for spotipie-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa7ff2f64c45eef8a367861689a14e72f71c35c39b35611df822bd7d291ac447 |
|
MD5 | ac4f790d75d34008a68f53ce88edb22c |
|
BLAKE2b-256 | 652019295cb9455230a40cacd6ff93533331455825d9501e6ea4f1a70fdeee7b |