Skip to main content

An asynchronous Python 3.10+ Spotify Web API wrapper.

Project description

aiospotify.py

An asynchronous Python 3.10+ Spotify Web API wrapper.

Installation

pip install -U aiospotify.py

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.1.0.tar.gz (45.9 kB view details)

Uploaded Source

Built Distribution

aiospotify_py-1.1.0-py3-none-any.whl (44.3 kB view details)

Uploaded Python 3

File details

Details for the file aiospotify_py-1.1.0.tar.gz.

File metadata

  • Download URL: aiospotify_py-1.1.0.tar.gz
  • Upload date:
  • Size: 45.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for aiospotify_py-1.1.0.tar.gz
Algorithm Hash digest
SHA256 64a511ebb2faafcaf87e7c2dcda0effc5dc2828719c089adac0a617765aadb08
MD5 33454e6f9f6e2afcbbd4de106432e5e3
BLAKE2b-256 98e96fbb188099ff8232103d094b264d0c1e572f88920b686a4f23a80a190a23

See more details on using hashes here.

File details

Details for the file aiospotify_py-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aiospotify_py-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eb5c42ece9ff20b8c41ff403ba8dfe7ea852cc2847f357dcc1334bb77dc09717
MD5 750dc268bdcc5c427f521f7d51763dc4
BLAKE2b-256 47a6a0caffae190df34e1a06b4b6afb9cf699b7ddb06891b04d7aaed3ff65286

See more details on using hashes here.

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