Spotizerr Auth Phoenix
raw JSON → 0.0.16 verified Sat May 09 auth: no python
A Spotizerr authentication utility for configuring Spotify credentials. Provides helper functions to manage OAuth tokens and refresh flows. Version 0.0.16, updated infrequently.
pip install spotizerr-auth-phoenix Common errors
error ImportError: No module named 'spotizerr_auth_phoenix' ↓
cause Incorrect import path or package not installed in the current environment.
fix
Install the package: pip install spotizerr-auth-phoenix. Then import with: from spotizerr_auth_phoenix import ...
error AttributeError: module 'spotizerr_auth_phoenix' has no attribute 'authenticate' ↓
cause The `authenticate` function was removed in version 0.0.16.
fix
Use
get_spotify_token() or refresh_spotify_token() instead. Warnings
gotcha The library uses underscores in the module name, not dots. Import with from spotizerr_auth_phoenix import ..., not spotizerr.auth.phoenix. ↓
fix Use correct import: from spotizerr_auth_phoenix import ...
breaking Version 0.0.16 removed the old `authenticate()` function; use `get_spotify_token()` and `refresh_spotify_token()` instead. ↓
fix Replace calls to `authenticate()` with `get_spotify_token(client_id, client_secret)`.
Imports
- get_spotify_token
from spotizerr_auth_phoenix import get_spotify_token - refresh_spotify_token wrong
from spotizerr.auth.phoenix import refresh_spotify_tokencorrectfrom spotizerr_auth_phoenix import refresh_spotify_token
Quickstart
import os
from spotizerr_auth_phoenix import get_spotify_token
client_id = os.environ.get('SPOTIFY_CLIENT_ID', '')
client_secret = os.environ.get('SPOTIFY_CLIENT_SECRET', '')
token = get_spotify_token(client_id, client_secret)
print(token)