🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

spotifython

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spotifython

A caching python interface to readonly parts of the spotify api.

0.2.12
PyPI
Maintainers
1

spotifython

A readonly wrapper for the Spotify API that relies on heavy caching to minimise the number of requests.

Key Features

  • caching requested data (note that non public data will be cached)

Installation

python 3.10 or higher is required

.. code:: sh

# Linux/macOS
python3 -m pip install -U spotifython

.. code:: sh

# Windows
py -3 -m pip install -U spotifython

To install the development version, run:

.. code:: sh

$ git clone https://github.com/vawvaw/spotifython
$ cd spotipython
$ python3 -m pip install -U .

Quick Example

.. code:: py

import spotifython

if __name__ == "__main__":
    scope = spotifython.Scope(playlist_read_private=True, user_library_read=True)
    authentication = spotifython.Authentication(
        client_id="client_id",
        client_secret="client_secret",
        scope=scope
    )
    client = spotifython.Client(authentication=authentication)

    playlists = client.user_playlists()
    for playlist in playlists:
        print(playlist.name)

    client.close()
  • Documentation <https://spotifython.readthedocs.io/en/latest/index.html>_
  • Spotify API Documentation <https://developer.spotify.com/documentation/web-api/>_

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts