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

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. Here are two basic examples.

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='your-spotify-client-id'
export SPOTIPY_CLIENT_SECRET='your-spotify-client-secret'

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.7.0.tar.gz (17.2 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.7.0-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

spotipy-2.7.0-py2-none-any.whl (14.8 kB view details)

Uploaded Python 2

File details

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

File metadata

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

File hashes

Hashes for spotipy-2.7.0.tar.gz
Algorithm Hash digest
SHA256 cd7d775efef096b85864e6e04c59188f11f2d0227adbe2aca34d122cfd84cae7
MD5 e0776fa77a15112a7010de600970f8d5
BLAKE2b-256 2229c118c1266c91c23cb6742c3277d384a0cfbdf891da2b716a98582c3705be

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for spotipy-2.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8a0ad0805772af1ac7952921cbef1ca5db4c4053ef4f8b8195520e19c8e9c08b
MD5 aa9c668708aaba8b97099bb7b1ec9ebd
BLAKE2b-256 c015d5de14fa29e4530c602165fa70df7210f38eaedab24b416f56eb80153dbb

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for spotipy-2.7.0-py2-none-any.whl
Algorithm Hash digest
SHA256 01a41a2ff72794a6b156d30a7d9bc785356a6faf7861497f22a18647be8ca3d0
MD5 1c4c6435df6c090437c92d29097a71c5
BLAKE2b-256 9a055500f4df8617555ffad78739da27ea8ae3fbbfc251e61fe559f31ae75b6d

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