DomoJupyter Integration

auth = dmda.DomoTokenAuth(
    domo_instance=os.environ["DOMO_DOJO_INSTANCE"],
    domo_access_token=os.environ["DOMO_DOJO_ACCESS_TOKEN"],
)

JUPYTER_TOKEN = "OT98Xy8sePH894pA7SgUhjEcjk1kHK"
WORKSPACE_ID = "1cfe9db4-5937-4889-beb3-a311fc42f246"  # learn_jupyter

workspace_params = await get_workspace_auth_token_params(
    workspace_id=WORKSPACE_ID, auth=auth
)

dj_auth = dmda.DomoJupyterTokenAuth.convert_auth(
    auth=auth, jupyter_token=JUPYTER_TOKEN, **workspace_params
)

dj_auth
DomoJupyterTokenAuth(jupyter_token='OT98Xy8sePH894pA7SgUhjEcjk1kHK', service_location='jupyter-prod1.domodatascience.com', service_prefix='/user/domo-community-1893952720/1cfe9db4/', domo_instance='domo-community', url_manual_login='https://domo-community.domo.com/auth/index?domoManualLogin=true', token_name='token_auth', user_id=1893952720, is_valid_token=True)

DomoJupyerWorkspace Class