{"library":"spotifython","title":"Spotifython","type":"library","description":"A caching Python interface to readonly parts of the Spotify API. Current version 0.2.12, requires Python >=3.10, with monthly releases. Provides simple access to Spotify data with built-in caching.","language":"python","status":"active","last_verified":"Sat May 09","install":{"commands":["pip install spotifython"],"cli":null},"imports":["from spotifython import Spotify"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":"https://github.com/vawvaw/spotifython","docs":"https://spotifython.readthedocs.io/","changelog":null,"pypi":"https://pypi.org/project/spotifython/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"import os\nfrom spotifython import Spotify\n\nclient_id = os.environ.get('SPOTIFY_CLIENT_ID', '')\nclient_secret = os.environ.get('SPOTIFY_CLIENT_SECRET', '')\nspotify = Spotify(client_id=client_id, client_secret=client_secret)\ntrack = spotify.track('4cOdK2wGLETKBW3PvgPWqT')\nprint(track['name'])","lang":"python","description":"Initialize with credentials and fetch a track by ID.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}