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

Uploaded Python 3

spotipy-2.11.1-py2-none-any.whl (18.7 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: spotipy-2.11.1.tar.gz
  • Upload date:
  • Size: 20.1 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.11.1.tar.gz
Algorithm Hash digest
SHA256 77307501a777440f451394cd541734d1744303ceebc1c49ca701cf0e54f1703c
MD5 62ec12f57b9a020966ab42201a9fd965
BLAKE2b-256 50de331821189428082e4a108d616483b06d1287c8cdd2f966e0e2530f12973a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: spotipy-2.11.1-py3-none-any.whl
  • Upload date:
  • Size: 18.7 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.11.1-py3-none-any.whl
Algorithm Hash digest
SHA256 29679098449c15a7a19b892fc95bf791f9b019672b4ce86185ff8b6f62d5fd51
MD5 4cf484f4c9186d9ab1fb89c6c0e13025
BLAKE2b-256 4122f9a512195293edb835908568ce040d3b7733b5ddeee76f3369f8ae072aca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: spotipy-2.11.1-py2-none-any.whl
  • Upload date:
  • Size: 18.7 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.11.1-py2-none-any.whl
Algorithm Hash digest
SHA256 861c5762a61f342820eed07d2e4f6268dcd159d712f9f6e2c7c4468ec836430a
MD5 e12f8d6ca0d84b45e95fc118ba4d6815
BLAKE2b-256 072f96169967e22cc6a131472a04219fd5b329a20f10d0d4e94cee1de53a3678

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