diff --git a/tap_superset/auth.py b/tap_superset/auth.py index 8e6b129..294da76 100644 --- a/tap_superset/auth.py +++ b/tap_superset/auth.py @@ -1,16 +1,7 @@ import requests -_TOKEN = None - def get_auth_token(base_url, username, password): - global _TOKEN - if _TOKEN is None: - _TOKEN = fetch_token(base_url, username, password) - return _TOKEN - - -def fetch_token(base_url, username, password): headers = { "accept": "application/json", "Content-Type": "application/json", diff --git a/tap_superset/client.py b/tap_superset/client.py index 97e880f..66085c3 100644 --- a/tap_superset/client.py +++ b/tap_superset/client.py @@ -4,8 +4,7 @@ import sys import json -import logging -from typing import Any, Callable, Iterable, List +from typing import Any, Callable, Iterable import requests from singer_sdk.authenticators import BearerTokenAuthenticator @@ -32,9 +31,8 @@ def url_base(self) -> str: """Return the API URL root, configurable via tap settings.""" return self.config["base_url"] - records_jsonpath = "$[*]" # Or override `parse_response`. + records_jsonpath = "$[*]" - # Set this value or override `get_new_paginator`. next_page_token_jsonpath = "$.next_page" # noqa: S105 @property