Apps
Application discovery and management for DesignSafe computational applications.
Application Discovery
Search for Tapis apps matching a search term.
Searches through available Tapis applications using partial name matching. This function helps discover applications available for job submission.
PARAMETER | DESCRIPTION |
---|---|
t
|
Authenticated Tapis client instance.
TYPE:
|
search_term
|
Name or partial name to search for. Use empty string for all apps. Supports partial matching with wildcards.
TYPE:
|
list_type
|
Type of apps to list. Must be one of: 'OWNED', 'SHARED_PUBLIC', 'SHARED_DIRECT', 'READ_PERM', 'MINE', 'ALL'. Defaults to "ALL".
TYPE:
|
verbose
|
If True, prints summary of found apps including ID, version, and owner information. Defaults to True.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
List[Tapis]
|
List[Tapis]: List of matching Tapis app objects with selected fields (id, version, owner). |
RAISES | DESCRIPTION |
---|---|
AppDiscoveryError
|
If the Tapis API search fails or an unexpected error occurs during the search operation. |
Example
find_apps(client, "matlab", verbose=True) Found 3 matching apps: - matlab-r2023a (Version: 1.0, Owner: designsafe) - matlab-parallel (Version: 2.1, Owner: tacc) - matlab-desktop (Version: 1.5, Owner: designsafe)
Source code in dapi/apps.py
Application Details
Get detailed information for a specific app ID and version.
Retrieves comprehensive details about a specific Tapis application, including job attributes, execution system, and parameter definitions.
PARAMETER | DESCRIPTION |
---|---|
t
|
Authenticated Tapis client instance.
TYPE:
|
app_id
|
Exact app ID to look up. Must match exactly.
TYPE:
|
app_version
|
Specific app version to retrieve. If None, fetches the latest available version. Defaults to None.
TYPE:
|
verbose
|
If True, prints basic app information including ID, version, owner, execution system, and description. Defaults to True.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
Optional[Tapis]
|
Optional[Tapis]: Tapis app object with full details including jobAttributes, parameterSet, and other configuration. Returns None if the app is not found. |
RAISES | DESCRIPTION |
---|---|
AppDiscoveryError
|
If the Tapis API call fails (except for 404 not found) or an unexpected error occurs during retrieval. |
Example
app = get_app_details(client, "matlab-r2023a", "1.0") App Details: ID: matlab-r2023a Version: 1.0 Owner: designsafe Execution System: frontera Description: MATLAB R2023a runtime environment