Expand description
Application-wide constants.
Centralizes configuration values that are used across multiple modules.
Constantsยง
- APP_
DIR_ NAME - Application directory name for config storage.
- CONFIG_
FILENAME - Filename for configuration.
- DEFAULT_
LIMIT - Default limit for paginated requests.
- DEFAULT_
OAUTH_ PORT - Default port for the OAuth callback server.
- DEFAULT_
OFFSET - Default offset for paginated requests.
- DEFAULT_
SEARCH_ LIMIT - Default limit for search results per type.
- MAX_
API_ RETRIES - Maximum number of retries for rate-limited API requests.
- MAX_
LIMIT - Maximum allowed limit for most Spotify endpoints.
- MAX_
SEARCH_ LIMIT - Maximum allowed search limit per type.
- OAUTH_
CALLBACK_ PATH - Path where Spotify redirects after authorization.
- OAUTH_
CALLBACK_ TIMEOUT_ SECS - Timeout in seconds for waiting for OAuth callback.
- PINS_
FILENAME - Filename for storing pins.
- PKCE_
VERIFIER_ LENGTH - Length of the PKCE verifier string.
- SPOTIFY_
API_ BASE_ URL - Base URL for Spotify Web API endpoints.
- SPOTIFY_
AUTH_ BASE_ URL - Base URL for Spotify authentication endpoints.
- TOKEN_
EXPIRY_ BUFFER_ SECS - Buffer in seconds before token expiry to consider it expired. Tokens are refreshed this many seconds before actual expiry.
- TOKEN_
FILENAME - Filename for storing OAuth tokens.