Data

Data


get_tags

Signature

get_tags()

Description

Retrieve the tags of your data.

Examples

    tags = data.get_tags()
    assert tags[0].name == "bicycle"

Returns

List of tags as Tag


get_datasource

Signature

get_datasource()

Description


delete

Signature

delete()

Description

Delete data and remove it from datalake.

:warning: DANGER ZONE: Be very careful here!

Remove this data from datalake, and all assets linked to this data.

Examples

    data.delete()

download

Signature

download(
   target_path: str = './', force_replace: bool = False
)

Description

Download this data file into given target_path

Examples

    data = clt.get_datalake().fetch_data(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.


MultiData


copy

Signature

copy()

Description


delete

Signature

delete()

Description

Delete a bunch of data and remove them from datalake.

:warning: DANGER ZONE: Be very careful here!

Remove a bunch of data from datalake, and all assets linked to each data.

Examples

    whole_data = datalake.fetch_data(quantity=3)
    whole_data.delete()

download

Signature

download(
   target_path: str = './', force_replace: bool = False, max_workers: int = 20
)

Description

Download this multi data in given target path

Examples

    bunch_of_data = client.get_datalake().fetch_data(25)
    bunch_of_data.download('./downloads/')

Arguments

  • target_path (str, optional) : Target path where to download. Defaults to './'.

  • force_replace : (bool, optional): Replace an existing file if exists. Defaults to False.

  • max_workers (int, optional) : Number of threads used to download. Defaults to 20.