Skip to content
Get started

Download the processed dataset

datasets.download(strdataset_id, DatasetDownloadParams**kwargs) -> DatasetDownloadResponse
GET/api/v1/datasets/{dataset_id}/download

Download the processed dataset

ParametersExpand Collapse
dataset_id: str
file_format: Optional[Literal["csv", "json", "jsonl", "parquet"]]

Output file format. Defaults to the original upload format if omitted.

One of the following:
"csv"
"json"
"jsonl"
"parquet"
ReturnsExpand Collapse

Download the processed dataset

import os
from adaption import Adaption

client = Adaption(
    api_key=os.environ.get("ADAPTION_API_KEY"),  # This is the default and can be omitted
)
response = client.datasets.download(
    dataset_id="dataset_id",
)
print(response)
"Example data"
Returns Examples
"Example data"