Methods
get
get
delete
delete
list
list
List data directories with optional filtering by FQN, ML Repo, or name.
Parameters
typing.Optional[str]
Fully qualified name to filter data directories by
typing.Optional[str]
ID of the ML Repo to filter data directories by
typing.Optional[str]
Name of the data directory to filter by
typing.Optional[int]
Maximum number of data directories to return
typing.Optional[int]
Number of data directories to skip for pagination
Returns
SyncPager[DataDirectory, ListDataDirectoriesResponse]
🔗 ListDataDirectoriesResponseList of data directories matching the query with pagination information
Usage
create_or_update
create_or_update
Create or update a data directory.
Parameters
DataDirectoryManifest
required
🔗 DataDirectoryManifestManifest containing metadata for the data directory to apply
Returns
GetDataDirectoryResponse
🔗 GetDataDirectoryResponseThe created or updated data directory
Usage
list_files
list_files
List files and directories in a data directory.
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
delete_files
delete_files
get_signed_urls
get_signed_urls
Get pre-signed URLs for reading or writing files in a data directory.
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_multipart_upload
create_multipart_upload
Create a multipart upload for large files in a data directory.
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