Create a dataset from file upload, HuggingFace, Kaggle, or Google Sheets
datasets.create(DatasetCreateParams**kwargs) -> DatasetCreateResponse
POST/api/v1/datasets
Unified ingest endpoint. Pass source.url to start an async import — the provider is inferred from the URL host (HuggingFace, Kaggle, or Google Sheets). Omit it to get upload instructions for a presigned S3 PUT.
Create a dataset from file upload, HuggingFace, Kaggle, or Google Sheets
import os
from adaption import Adaption
client = Adaption(
api_key=os.environ.get("ADAPTION_API_KEY"), # This is the default and can be omitted
)
dataset = client.datasets.create(
source={},
)
print(dataset.dataset_id){
"dataset_id": "dataset_id",
"status": "status",
"upload_instructions": {
"url": "https://s3.amazonaws.com/bucket/key?X-Amz-Signature=...",
"method": "PUT",
"s3_key": "s3_key"
}
}Returns Examples
{
"dataset_id": "dataset_id",
"status": "status",
"upload_instructions": {
"url": "https://s3.amazonaws.com/bucket/key?X-Amz-Signature=...",
"method": "PUT",
"s3_key": "s3_key"
}
}