from .atlas_client import AtlasClient from .client import ApiClient from .decibel_client import DecibelClient from ..config import ATLAS_API_DOMAIN, DECIBEL_API_DOMAIN class ApiClientFactory: @staticmethod def atlas_client() -> AtlasClient: return AtlasClient(ApiClient(ATLAS_API_DOMAIN)) @staticmethod def decibel_client(access_token) -> DecibelClient: header = { "Authorization": f"Bearer {access_token}" } return DecibelClient(ApiClient(DECIBEL_API_DOMAIN, headers=header))