Skip to main content

The next generation Spotify Web API wrapper for Python

Project description

Spotipy2
The next generation Spotify Web API wrapper for Python
Documentation Releases Community

Quick example

import asyncio
from spotipy2 import Spotify
from spotipy2.auth import ClientCredentialsFlow

async def get_track_name(track_id):
    client = Spotify(
        ClientCredentialsFlow(
            client_id="client_id",
            client_secret="client_secret"
        )
    )

    async with client as s:
        track = await s.get_track(track_id)
        print(f"The name of the track is {track.name}")

asyncio.run(get_track_name(input("Insert the track ID: ")))

Key Features

  • Easy - Makes the Spotify API easy to understand and intuitive, without giving less customization.
  • Fast - Thanks to its async design and aiohttp speed, spotipy2 is incredibly fast
  • Type-hinted - All the methods and types are type-hinted, enabling excellent IDE support
  • Documented - API methods, types and interfaces are all well documented

Installing

pip install spotipy2

Resources

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

spotipy2-0.6.1.tar.gz (11.7 kB view hashes)

Uploaded Source

Built Distribution

spotipy2-0.6.1-py3-none-any.whl (20.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page