Skip to main content

A simple Spotify Web API in Python

Project description

Spotify Web API in Python

Installation

pip install spotifywebapi

Setup

export SPOTIFY_CLIENT_ID=client_id_here
export SPOTIFY_CLIENT_SECRET=client_secret_here

Client

import spotifywebapi, os

sp = spotifywebapi.Spotify(os.getenv('SPOTIFY_CLIENT_ID'), os.getenv('SPOTIFY_CLIENT_SECRET'))

User

user = sp.getAuthUser(refreshtoken_for_user)

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

spotifywebapi-1.2.8.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spotifywebapi-1.2.8-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file spotifywebapi-1.2.8.tar.gz.

File metadata

  • Download URL: spotifywebapi-1.2.8.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for spotifywebapi-1.2.8.tar.gz
Algorithm Hash digest
SHA256 27dd9c674fc866bdae7eb3dbf5e7b95487a5583fe5364fd681c3ac3badd5588e
MD5 935877adef8d4a25ad0ce0b407c366fb
BLAKE2b-256 3dcde4154c628af22dcb5c895a845f28110a2cae4e6ba4139e9e2b4b1e5be571

See more details on using hashes here.

File details

Details for the file spotifywebapi-1.2.8-py3-none-any.whl.

File metadata

  • Download URL: spotifywebapi-1.2.8-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for spotifywebapi-1.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 996e06fed4f0d1275b8b05557f2c44ad0591381f3f943fcb2dbadae29c3cd238
MD5 9d9e2f115aae4f9e1ebb9c335a096698
BLAKE2b-256 b3a8c786870adf09dc462be02a93ae3c26356452077c1f669846dd4e0238d7f5

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