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

If you already have Python on your system you can install the library simply by downloading the distribution, unpack it and install in the usual fashion:

python setup.py install

You can also install it using a popular package manager with

pip install spotipy

or

easy_install spotipy

Dependencies

  • Requests - spotipy requires the requests package to be installed

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 i, t in enumerate(results['tracks']['items']):
    print(' ', i, t['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.6.3.tar.gz (17.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.6.3-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

spotipy-2.6.3-py2-none-any.whl (14.9 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: spotipy-2.6.3.tar.gz
  • Upload date:
  • Size: 17.7 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.6.3.tar.gz
Algorithm Hash digest
SHA256 8b7eb79d12a3f869064e2a24e374423d32b4ed42fcc323de62ea5ed009270f44
MD5 d26dab33d260260e96e48dde4afe4ade
BLAKE2b-256 50058bc6f1fe78286e3513dac1d9747105b6d37ecb805c12afb3824fdd302f0c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: spotipy-2.6.3-py3-none-any.whl
  • Upload date:
  • Size: 14.9 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.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5d34c6f6c98de5ea137dbb7bccb2600836403bcd3f497af27bdfe54f54d63549
MD5 5ffac811b37d706b3160e34ac9a9178a
BLAKE2b-256 7e108be9f3549a360c393b9c7392622271774422818faf091b8412d1b59d09e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: spotipy-2.6.3-py2-none-any.whl
  • Upload date:
  • Size: 14.9 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.6.3-py2-none-any.whl
Algorithm Hash digest
SHA256 2bea15d2f828bef348a0155e3a897e954edd6eb59a9281bf46c5304be2ed3e9d
MD5 75a91d1ffabc73e688a18391c794301c
BLAKE2b-256 dade2b28f95ac0a3401a0f2c8b3a6de2e401bea313521eefc5822e5d2eaceb8a

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