Skip to main content

A light weight Python library for the Spotify Web API

Project description

Spotipy

A light weight Python library for the Spotify Web API

Tests Documentation Status

Documentation

Spotipy's full documentation is online at Spotipy Documentation.

Installation

pip install spotipy

Quick Start

A full set of examples can be found in the online documentation and in the Spotipy examples directory.

To get started, install spotipy and create an app on https://developers.spotify.com/. Add your new ID and SECRET to your environment:

export SPOTIPY_CLIENT_ID=client_id_here
export SPOTIPY_CLIENT_SECRET=client_secret_here

// on Windows, use `SET` instead of `export`

Then, create a Spotify object and call methods:

import spotipy
from spotipy.oauth2 import SpotifyClientCredentials

sp = spotipy.Spotify(client_credentials_manager=SpotifyClientCredentials())

results = sp.search(q='weezer', limit=20)
for idx, track in enumerate(results['tracks']['items']):
    print(idx, track['name'])

Reporting Issues

If you have suggestions, bugs or other issues specific to this library, file them here. Or just send me a pull request.

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

spotipy-2.10.0.tar.gz (17.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

spotipy-2.10.0-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

spotipy-2.10.0-py2-none-any.whl (16.6 kB view details)

Uploaded Python 2

File details

Details for the file spotipy-2.10.0.tar.gz.

File metadata

  • Download URL: spotipy-2.10.0.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.8.0 tqdm/4.38.0 CPython/3.7.5

File hashes

Hashes for spotipy-2.10.0.tar.gz
Algorithm Hash digest
SHA256 f5bd0d04f4fd37d3b38cd3b35d2e9ce05182a57bc52403d6bad14d07bb4f4e68
MD5 9e51cef7016db08a972ddd804f07f386
BLAKE2b-256 c14ec21c7b9871278aa8404ec8da0d5922ee33621616d7d5c58d2f5338df3639

See more details on using hashes here.

File details

Details for the file spotipy-2.10.0-py3-none-any.whl.

File metadata

  • Download URL: spotipy-2.10.0-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.8.0 tqdm/4.38.0 CPython/3.7.5

File hashes

Hashes for spotipy-2.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4cb4ce6509ea2641b59fd8a3791d145865f7589f2c901ddcf0316cd147724cfc
MD5 e509dae13fbef8bbb7eb61b753c5a6dd
BLAKE2b-256 ea398efecac5a29cb7092788c11e6dff46087bfe716663ce7b85fd7d34e85c6e

See more details on using hashes here.

File details

Details for the file spotipy-2.10.0-py2-none-any.whl.

File metadata

  • Download URL: spotipy-2.10.0-py2-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.8.0 tqdm/4.38.0 CPython/3.7.5

File hashes

Hashes for spotipy-2.10.0-py2-none-any.whl
Algorithm Hash digest
SHA256 ed95a516d3f3297665db4baf5be363ac9af6b826cb466692defa370ca7597c79
MD5 b79a2a3a093f1924ef5ba31cb3833d6b
BLAKE2b-256 10cb0efaf3ad5a824877c2160a026d8368a02291e290f2a9a69c97bf7931858b

See more details on using hashes here.

Supported by

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