Artifact
module
artifact.py
class
ArtifactPath
ArtifactPath(src, dest)
class
ArtifactVersion
property
artifact_fqn
Get fqn of the artifact
property
created_at
Get the time at which artifact was created
property
created_by
Get the information about who created the artifact
property
description
Get description of the artifact
property
fqn
Get fqn of the current artifact version
property
metadata
Get metadata for the current artifact
property
name
Get the name of the artifact
property
step
Get the step in which artifact was created
property
updated_at
Get the information about the when the artifact was updated
property
version
Get version information of the artifact
function
delete
Deletes the current instance of the ArtifactVersion hence deleting the current version.
Returns:
True if artifact was deleted successfully
Examples:
function
download
Download an artifact file or directory to a local directory if applicable, and return a local path for it.
Args:
path
(str): Absolute path of the local filesystem destination directory to which to download the specified artifacts. This directory must already exist. If unspecified, the artifacts will either be downloaded to a new uniquely-named directory on the local filesystem or will be returned directly in the case of the Local ArtifactRepository.overwrite
(bool): If True it will overwrite the file if it is already present in the download directory else it will throw an error
Returns:
path
: Absolute path of the local filesystem location containing the desired artifacts.
Examples:
classmethod
from_fqn
Get the version of an Artifact to download contents or load them in memory
Args:
fqn
(str): Fully qualified name of the artifact version.
Returns:
ArtifactVersion
: An ArtifactVersion instance of the artifact
Examples:
function
raw_download
Download an artifact file or directory to a local directory if applicable, and return a local path for it.
Args:
path
(str): Absolute path of the local filesystem destination directory to which to download the specified artifacts. This directory must already exist. If unspecified, the artifacts will either be downloaded to a new uniquely-named directory on the local filesystem.overwrite
(bool): If True it will overwrite the file if it is already present in the download directory else it will throw an error
Returns:
path
: Absolute path of the local filesystem location containing the desired artifacts.
Examples:
function
update
Updates the current instance of the ArtifactVersion hence updating the current version.
Examples: