Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Spotify Web API implementation that is fully asynchronous and object-oriented.
Readme
.. image:: https://img.shields.io/pypi/v/asyncspotify.svg :target: https://python.pypi.org/project/asyncspotify/ :alt: PyPI version info
.. image:: https://readthedocs.org/projects/asyncspotify/badge/?version=latest :target: https://asyncspotify.readthedocs.io/en/latest/ :alt: RTD Documentation
asyncspotify is an asynchronous, object-oriented python wrapper for the Spotify Web API.
Simply install the library from PyPI:
.. code:: sh
python -m pip install asyncspotify
The documentation can be found at readthedocs <https://asyncspotify.readthedocs.io/>
_.
To get going quickly, read the quickstart <https://asyncspotify.readthedocs.io/en/latest/quickstart.html>
_.
For complete examples, please check the documentation. Here's some snippets:
Authenticating using the Client Credentials flow, and getting a playlist:
.. code:: py
from asyncspotify import Client, ClientCredentialsFlow
auth = ClientCredentialsFlow( client_id='your client id', client_secret='your client secret', )
async with Client(auth) as sp: playlist = await sp.get_playlist('1MG01HhbCvVhH9NmXhd9GC') async for track in playlist: print(track.name)
Searching for and getting tracks:
.. code:: py
results = await sp.search_tracks(q='involvers', limit=2)
track = await sp.get_track('0hqAWKZDhuOfFb6aK002Ph')
Fetching and creating playlists:
.. code:: py
playlist = await sp.get_playlist('1wPvaRtuI8mt10CpP2KnlO')
for track in playlist.tracks: print(track)
me = await sp.get_me()
my_playlist = await me.create_playlist(name='My playlist!')
await my_playlist.add_tracks(*playlist.tracks)
Please report issues here at GitHub <https://github.com/Run1e/asyncspotify/issues>
_.
FAQs
Spotify Web API implementation that is fully asynchronous and object-oriented.
We found that asyncspotify demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.