Socket
Socket
Sign inDemoInstall

spyotipy

Package Overview
Dependencies
4
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    spyotipy

A Python wrapper for the Spotify API


Maintainers
1

Readme

Spyotipy

An easy to use API wrapper for Spotify written in Python.

Installing

Python 3.7 or higher is required

.. code:: sh

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

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

Quick Example

.. code:: py

import asyncio

from spotify import Client


async def main():
    async with Client("id", "secret") as c:
        a = await c.get_album("id")
        print(a)

        async for track in a:
            print(track)


if __name__ == "__main__":
    loop = asyncio.get_event_loop()
    loop.run_until_complete(main())

FAQs


Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc