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.8.0.tar.gz (18.7 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.8.0-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

spotipy-2.8.0-py2-none-any.whl (16.2 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: spotipy-2.8.0.tar.gz
  • Upload date:
  • Size: 18.7 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.8.0.tar.gz
Algorithm Hash digest
SHA256 4bbf8ef630c1b1a894c43b83b40e6d61fcc700bea0f9732a5b0b0b5f033004a2
MD5 25203be6bdadf0a3f0b0d01072bc87ce
BLAKE2b-256 a484d0266ccb8c5758a2205557b115a791d2f3426270aacac2fbfbd37a8d3838

See more details on using hashes here.

File details

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

File metadata

  • Download URL: spotipy-2.8.0-py3-none-any.whl
  • Upload date:
  • Size: 16.2 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.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e52b189cec5cfb6aa39f60ec918da2b23a542a1aa336cb26d238f5887f871ad5
MD5 91d9ca3a0f01c1969f7a33791ad1ff3d
BLAKE2b-256 e9dd948db0a5fa434f74ca1b4f471a5e9217209a68760e39bdca69372d8b8653

See more details on using hashes here.

File details

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

File metadata

  • Download URL: spotipy-2.8.0-py2-none-any.whl
  • Upload date:
  • Size: 16.2 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.8.0-py2-none-any.whl
Algorithm Hash digest
SHA256 0b900b4e74e8115fa2ed60645290d4c34424a9cd9d061fb7274b0abff36f5031
MD5 a3015cdc4a9d8fd000d209578f8b0e58
BLAKE2b-256 c1fe75884a0352cce1e3f1c9dc838d905a4d47e1b2786bee49314e1a3836084b

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