Aiospotipy
aiospotipy is an API wrapper for Spotify written in python.
This is based on asyncio and spotipy.
Installing
This package can be installed in pip
:
pip install aiospotipy
Of course, you can install the package manually after cloning the repository:
git clone https://github.com/sizumita/aiospotipy.git
cd aiospotipy
python setup.py install
Quick Example
from aiospotipy import Spotify
auth = "xxxxxxxxxxxxxx"
spotify = Spotify(auth=auth)
search_results = await spotify.search_artist(q="kalafina")
from aiospotipy import Spotify
from aiospotipy.oauth2 import SpotifyCredentials
spotify = Spotify(SpotifyCredentials("CLIENT_ID", "CLIENT_SECRET"))
search_results = await spotify.search(q='3n3Ppam7vgaVa1iaRUc9Lp', _type='track')
my_playlists = await spotify.me.playlists()
License
This project is licensed under the MIT Licence.