Skip to main content

An asynchronous Python 3.10+ Spotify Web API wrapper.

Reason this release was yanked:

Contains debugging file logging, not intended to be included in a release

Project description

aiospotify.py

An asynchronous Python 3.10+ Spotify Web API wrapper.

Documentation: https://aiospotifypy.readthedocs.io/en/latest/ Examples: https://github.com/novanai/aiospotify.py/tree/master/examples

Getting Started

import asyncio
import spotify

async def main():
    # Setup an API client
    auth = await spotify.ClientCredentialsFlow.build_from_access_token(
        "CLIENT_ID",
        "CLIENT_SECRET",
    )
    api = spotify.API(auth)

    # Get details about a Spotify artist
    artist = await api.get_artist("0e86yPdC41PGRkLp2Q1Bph")
    print(artist.name)  # "Mother Mother"


asyncio.run(main())

To-Do List

  • Add extra methods to Paginator (for fetching all items, lazy iteration etc)
  • URI helper class
  • Automatically handle 429's (Too Many Requests)

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

aiospotify_py-1.0.0.tar.gz (45.2 kB view hashes)

Uploaded Source

Built Distribution

aiospotify_py-1.0.0-py3-none-any.whl (43.4 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