{"library":"spotipy2","title":"Spotipy2","type":"library","description":"The next generation Spotify Web API wrapper for Python. Current version 0.6.1, supports Python 3.7+. Active development with async support, dataclass types, and OAuth flows.","language":"python","status":"active","last_verified":"Sat May 09","install":{"commands":["pip install spotipy2"],"cli":null},"imports":["from spotipy2 import Spotify","from spotipy2.auth import ClientCredentialsFlow","from spotipy2.types import Track"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":"https://spotipy2.org/","github":"https://github.com/CyanBook/spotipy2","docs":null,"changelog":null,"pypi":"https://pypi.org/project/spotipy2/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"import os\nfrom spotipy2 import Spotify\nfrom spotipy2.auth import ClientCredentialsFlow\n\nclient_id = os.environ.get('SPOTIFY_CLIENT_ID', '')\nclient_secret = os.environ.get('SPOTIFY_CLIENT_SECRET', '')\n\nauth = ClientCredentialsFlow(client_id=client_id, client_secret=client_secret)\nclient = Spotify(auth)\n\ntrack = client.get_track('4cOdK2wGLETKBW3PvgPWqT')\nprint(track.name)","lang":"python","description":"Authenticate using Client Credentials Flow and fetch a track.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}