proxystore.globus.client¶
Create Globus Service clients.
get_confidential_app_auth_client
¶
get_confidential_app_auth_client(
client_id: str | None = None,
client_secret: str | None = None,
) -> ConfidentialAppAuthClient
Create a confidential application authentication client.
Note
See the Globus SDK docs to learn how to create a confidential application and get the ID and secret.
Note
This function will not perform the OAuth2 flow.
Parameters:
-
client_id(str | None, default:None) –Client ID. If either
client_idorclient_secretisNone, the values will be read from the environment usingget_client_credentials_from_env(). -
client_secret(str | None, default:None) –Client secret.
Returns:
-
ConfidentialAppAuthClient–Authorization client.
Raises:
-
ValueError–if
client_idorclient_secretare not provided and one or both ofPROXYSTORE_GLOBUS_CLIENT_IDandPROXYSTORE_GLOBUS_CLIENT_SECRETare not set.
Source code in proxystore/globus/client.py
get_native_app_auth_client
¶
get_native_app_auth_client(
client_id: str = PROXYSTORE_GLOBUS_CLIENT_ID,
app_name: str | None = None,
) -> NativeAppAuthClient
Create a native app authentication client.
Note
This function will not perform the OAuth2 flow.
Parameters:
-
client_id(str, default:PROXYSTORE_GLOBUS_CLIENT_ID) –Application ID. Defaults to the ProxyStore application ID.
-
app_name(str | None, default:None) –Application name.
Returns:
-
NativeAppAuthClient–Authorization client.
Source code in proxystore/globus/client.py
get_transfer_client
¶
get_transfer_client(
globus_app: GlobusApp | None = None,
collections: Iterable[str] = (),
) -> TransferClient
Create a transfer client.
Parameters:
-
globus_app(GlobusApp | None, default:None) –GlobusAppused to initialize the transfer client. IfNone, a defaultUserAppis created usingget_user_app(). -
collections(Iterable[str], default:()) –Iterable of collection UUIDs to add dependent
data_accessscopes for (viaadd_app_data_access_scope().
Returns:
-
TransferClient–Transfer client.