Methods
get
get
delete
delete
list
list
List artifact versions with optional filtering by tag, FQN, artifact ID, ML Repo, name, version, run IDs, or run steps.
Parameters
typing.Optional[str]
Tag to filter artifact versions by
typing.Optional[str]
Fully qualified name to filter artifact versions by (format: ’://’ or ’://:’)
typing.Optional[str]
ID of the artifact to filter versions by
typing.Optional[str]
ID of the ML Repo to filter artifact versions by
typing.Optional[str]
Name of the artifact to filter versions by
typing.Optional[int]
Version number (positive integer) or ‘latest’ to filter by specific version
typing.Optional[typing.Union[str, typing.Sequence[str]]]
List of run IDs to filter artifact versions by
typing.Optional[typing.Union[int, typing.Sequence[int]]]
List of run step numbers to filter artifact versions by
typing.Optional[int]
Number of artifact versions to skip for pagination
typing.Optional[int]
Maximum number of artifact versions to return
typing.Optional[bool]
Whether to include internal metadata in the response
Returns
SyncPager[ArtifactVersion, ListArtifactVersionsResponse]
🔗 ListArtifactVersionsResponseList of artifact versions matching the query with pagination information
Usage
get_signed_urls
get_signed_urls
Get pre-signed URLs for reading or writing files in an artifact version.
Parameters
str
required
ID of the artifact version to get signed URLs for
typing.Sequence[str]
required
List of relative file paths within the artifact version to get signed URLs for
Operation
required
🔗 OperationOperation type for the signed URL (e.g., ‘READ’ or ‘WRITE’)
Returns
GetSignedUrLsResponse
🔗 GetSignedUrLsResponseList of signed URLs for the requested file paths
Usage
create_multi_part_upload
create_multi_part_upload
Create a multipart upload for large files in an artifact version.
Parameters
str
required
ID of the artifact version to upload files to
str
required
Relative path within the artifact version where the file should be uploaded
int
required
Number of parts to split the upload into for multipart upload
Returns
MultiPartUploadResponse
🔗 MultiPartUploadResponseMultipart upload information including signed URLs for each part
Usage
stage
stage
Stage an artifact version for upload, returning storage location and version ID.
Parameters
StageArtifactRequestManifest
required
🔗 StageArtifactRequestManifestManifest containing metadata for the artifact to be staged (model or generic artifact)
Returns
StageArtifactResponse
🔗 StageArtifactResponseStaging information including version ID, storage root, and artifact ID
Usage
list_files
list_files
List files and directories in an artifact version.
Parameters
str
required
ID of the artifact version to list files from
typing.Optional[str]
Relative path within the artifact version to list files from (defaults to root)
typing.Optional[int]
Maximum number of files/directories to return
typing.Optional[str]
Token to retrieve the next page of results
Returns
SyncPager[FileInfo, ListFilesResponse]
🔗 ListFilesResponseList of files and directories with pagination information
Usage
mark_stage_failure
mark_stage_failure