aero_client
api
DSaaS client API module
get_flow()
Get metadata on the flow provided a flow ID.
PARAMETER | DESCRIPTION |
---|---|
flow_id
|
The flow UUID
TYPE:
|
inputs_only
|
Whether to return flow input data exclusively. Defaults to True.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
dict
|
Flow metadata in dictionary representation.
TYPE:
|
globus_logout()
Remove the Globus Auth token file to invoke login on next API access.
list_metadata()
Get the metadata records.
PARAMETER | DESCRIPTION |
---|---|
metadata_type
|
List metadata of a certain type.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
JSON
|
Generation[JSON]: a generator returning up to 15 metadata records at a time. |
register_flow()
register_flow(
endpoint_uuid: str,
function_uuid: str,
input_data: dict[str | dict[str | int | None]] = {},
output_data: dict[str | dict[str, str]] = {},
kwargs: JSON = {},
config: str | None = None,
description: str | None = None,
policy: PolicyEnum = PolicyEnum.NONE,
timer_delay: int | None = None,
pull_function_uuid: str | None = None,
commit_function_uuid: str | None = None,
) -> None
Register user function to run as a Globus Flow on remote server periodically.
PARAMETER | DESCRIPTION |
---|---|
endpoint_uuid
|
Globus Compute endpoint uuid
TYPE:
|
function_uuid
|
Globus Compute registered function UUID
TYPE:
|
input_data
|
The input data,
presented in the format {"name": {"id":
TYPE:
|
output_data
|
The output data that will be created,
presented in the format {"name": {"url":
TYPE:
|
kwargs
|
Keyword arguments to pass to function. Default is None
TYPE:
|
config
|
Path to config file. Default is None.
TYPE:
|
description
|
A description of the Flow. Default is None.
TYPE:
|
policy
|
Which policy to use to rerun the flow. Default is never rerun.
TYPE:
|
timer_delay
|
The timer delay in seconds if PolicyEnum.TIMER is applied. Default is None.
TYPE:
|
pull_function_uuid
|
the uuid returned when registering either
TYPE:
|
commit_function_uuid
|
the uuid returned when registering either
TYPE:
|
RAISES | DESCRIPTION |
---|---|
ClientError
|
if function was not able to be registered as a flow, this error is raised |
RETURNS | DESCRIPTION |
---|---|
str
|
the timer job uuid.
TYPE:
|
cli
config
error
example
Example of the AERO client in use.
jobs
AERO flow compute function definition.
commit_analysis()
Commit metadata of analysis function to database.
RETURNS | DESCRIPTION |
---|---|
dict
|
Response from database update.
TYPE:
|
database_commit()
Commit ingested metadata to database
RETURNS | DESCRIPTION |
---|---|
dict
|
Response dictionary returned by user function with optional metrics appended.
TYPE:
|
download()
Download data from user-specified repository.
RETURNS | DESCRIPTION |
---|---|
tuple[str, str]
|
tuple[str, str]: Path to the data and its associated extension. |
utils
DSaaS client util module
PolicyEnum
Bases: IntEnum
Enum for the types of policies supported by AERO.
aero_format()
AERO decorator that wraps user analysis function to capture provenance information.
download()
Download data from user-specified repository.
RETURNS | DESCRIPTION |
---|---|
tuple[str, str]: Path to the data and its associated extension. |
get_transfer_token()
Get the transfer token belonging to the Globus Guest Collection.
This function first verifies whether the token already exists. If it does not, it generates the tokens and updates the token file.
PARAMETER | DESCRIPTION |
---|---|
collection_uuid
|
The UUID of the Globus Guest Collection.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
str
|
The transfer token for the guest collection
TYPE:
|