get_valid_arch(arch: str) → str
Return a known architecture for the given arch
.
Args:
arch
(str): The architecture of the profile.
Returns:
str
: valid architecture.
require_env(name: str) → str
Require and return an environment variable.
Args:
name
(str): The name of the variable.
Raises:
ValueError
: In case the environment variable is not set.
Returns:
str
: The value of the variable.
get_workspace_dir() → str
Return the workspace directory.
get_app_manifest() → Dict[str, Any]
get_script_path() → str
Return the absolute path to the directory the invoked Python script is located in.
get_package_path() → str
Return the absolute path to the package directory the invoked Python script belongs to.
get_project_cache_dir() → str
Return the project's cache directory.
Returns:
str
: The path to the project's cache directory.
get_cache_data() → Dict[str, Any]
Return the data of the cache as Python object.
get_log_file_name(service_id: str, runtime_id: str) → str
Build the log file name for the given service and runtime.
Args:
service_id
(str): The ID of the service to log.runtime_id
(str): The ID of the runtime to log.
Returns:
str
: The log file name.
get_programming_language() → str
Return the programming language of the project.
create_log_file(service_id: str, runtime_id: str) → TextIOWrapper
Create a log file for the given service and runtime.
Args:
service_id
(str): The ID of the service to log.runtime_id
(str): The ID of the runtime to log.
Returns:
TextIOWrapper
: The log file.
download_file(uri: str, local_file_path: str) → None
is_uri(path: str) → bool
Check if the provided path is a URI.
Args:
path
(str): The path to check.
Returns:
bool
: True if the path is a URI. False otherwise.
obtain_local_file_path(
path_or_uri: str,
download_path: Optional[str] = None
) → str
Return the absolute path to the file, specified by a absolute/relative local path or with an URI.
Args:
path_or_uri
(str): Absolute/relative local path or URI.download_path
(str): The path to download the file.
Returns:
str
: The absolute path to the file.
This file was automatically generated via lazydocs.