Properties
url
Url This is generated by backend and expires after 1 hour. So this property might be out of date. Callingsync()
method will retrieve a new url when expired.
id
Id
object_name
Object name
filename
Filename
-
large
If true, this (Object) has a large size -
data_id
UUID of Data linked to this projection -
name
Name of this DataProjection. This can be None -
object_name
Object name of this DataProjection. If compute status is not DONE, this might be None. -
filename
Filename of this DataProjection. If compute status is not DONE, this might be None. -
type
Type of this DataProjection -
infos
Infos of this DataProjection. Can be None
Methods
reset_url
reset_url()
Description
Reset url of this object
download
download(
target_path: Union[str, Path] = './', force_replace: bool = False,
use_id: bool = False
)
Description
Download this object into given target_path
Examples
data = clt.get_datalake().list_data(limit=1)
data.download('./data/')
Arguments
-
target_path (str, optional) : Target path where data will be downloaded. Defaults to './'.
-
force_replace (bool, optional) : Replace an existing file if exists. Defaults to False.
-
use_id (bool, optional) : If true, will download file with id and extension as file name. Defaults to False.
reset_url
reset_url()
Description
Reset url property of this DataProjection by calling platform.
Returns
A url as a string of this Data.
delete
delete()
Description
Delete this projection from the platform.
⚠️ DANGER ZONE: Be very careful here!
Examples
projection.delete()