Module constants

Module constants 

Source
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.