{"id":28237,"library":"spotipylist","title":"spotipylist","description":"A playlist generator for creating local playlists using Spotify curated playlists. Current version 0.2.1, supports Python >=3.6, and is maintained with occasional updates.","status":"active","version":"0.2.1","language":"python","source_language":"en","source_url":"https://github.com/zacharyeller13/spotipylist","tags":["playlist","spotify","music"],"install":[{"cmd":"pip install spotipylist","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"Playlist class available since v0.2.0","symbol":"Playlist","correct":"from spotipylist import Playlist"},{"note":"Song class available since v0.2.0","symbol":"Song","correct":"from spotipylist import Song"},{"note":"Top-level function for playlist generation","symbol":"generate_playlist","correct":"from spotipylist import generate_playlist"}],"quickstart":{"code":"import os\nfrom spotipylist import generate_playlist\n\n# Set environment variables for Spotify API credentials\ngenerate_playlist(\n    spotify_client_id=os.environ.get('SPOTIPY_CLIENT_ID', ''),\n    spotify_client_secret=os.environ.get('SPOTIPY_CLIENT_SECRET', ''),\n    playlist_name='My Playlist',\n    num_songs=20\n)","lang":"python","description":"Generate a local playlist using Spotify curated playlists."},"warnings":[{"fix":"Update code to use Playlist and Song objects instead of dicts.","message":"v0.2.0 introduced Playlist and Song classes, replacing earlier dict-based data structures. Code relying on dict access may break.","severity":"breaking","affected_versions":"<0.2.0"},{"fix":"Set environment variables SPOTIPY_CLIENT_ID and SPOTIPY_CLIENT_SECRET or pass them directly.","message":"The library requires Spotify API credentials (client ID and secret). Missing credentials cause authentication failures.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Set SPOTIPY_CLIENT_ID and SPOTIPY_CLIENT_SECRET environment variables or pass them to generate_playlist.","cause":"Missing Spotify API credentials.","error":"spotipy.oauth2.SpotifyOauthError: You must set the CLIENT_ID and CLIENT_SECRET environment variables or pass them to SpotifyClientCredentials"},{"fix":"Upgrade to v0.2.0+ and use Playlist/Song objects, or update code to access dict keys like ['name'].","cause":"Code expecting a Playlist object but receiving a dict (pre-v0.2.0 behavior).","error":"AttributeError: 'dict' object has no attribute 'name'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}