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.12.0.tar.gz (20.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.12.0-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

spotipy-2.12.0-py2-none-any.whl (18.9 kB view details)

Uploaded Python 2

File details

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

File metadata

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

File hashes

Hashes for spotipy-2.12.0.tar.gz
Algorithm Hash digest
SHA256 f3a08edd516ffaf0731d40fdb7943445fe7b1b412700d042cbd168a726685222
MD5 56d443af074e1a4d79be43eeba6d1cc8
BLAKE2b-256 e7876b96c208cc57bad299ecc6c74989f21028f63c2bfe34502031afc9a3cfdf

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for spotipy-2.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 43656984ac8730b6e2a1a88d59673296937a55a026edc8bcc1e882890c34e7d3
MD5 2cd3a7a03e27e529a361a338f8c8ed9b
BLAKE2b-256 b267ea788ae3d7e3aad0b0ef72a4f5b6c24c1dbb3db83fd57efc221f86b4fe87

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for spotipy-2.12.0-py2-none-any.whl
Algorithm Hash digest
SHA256 36afdf8bc71a30bed1a9344b0b7325ab7d645005fd72718515a4d4984b9a19f7
MD5 42c0373c8174dbe37ce2cc46eb50ff36
BLAKE2b-256 9b4661f4416561278f90b0b35a46af5bbbd80ac4351f825cee56c1c46c613a10

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