spotify_py_sdk package

Subpackages

Submodules

spotify_py_sdk.spotify_api module

class spotify_py_sdk.spotify_api.SpotifyApi(client_id: str, client_secret: str, config: SdkConfig | None = None)[source]

Bases: object

Create an api instance and call the various endpoint methods.

Parameters:
  • client_id (str) – Client_ID for your app

  • client_secret (str) – Client_Secret for your app

  • config (SdkConfig, optional) – pass SdkConfig instance, defaults to None

classmethod fetch_results(url: str, opts: dict)[source]

Fetch results by making a request to the given URL

make_request(method: Literal['GET', 'POST', 'PUT', 'DELETE'], url: str, body: any | None = None, content_type: str | None = None)[source]

Get access token and make necessary request call to the api endpoint

spotify_py_sdk.types module

class spotify_py_sdk.types.SdkConfig(fetch: Callable[[str, dict], Response] | None = None, before_request: Callable[[str, dict], Any] | None = None, after_request: Callable[[str, dict, Response], Any] | None = None)[source]

Bases: object

Module contents