Dataset
thesis dataset
Manage datasets.
thesis dataset list
List all datasets.
thesis dataset list [options]
-
Arguments
- None
-
Options
| Option | Description | Default | Required? |
|---|---|---|---|
--core-url <url> |
Core API URL | http://localhost:42421 |
No |
--format <format> |
Filter by format (csv, json, parquet, ...) | No | |
--structured |
Only structured datasets | No | |
--root-only |
Only root datasets (no children) | No | |
--json |
Output as JSON | No |
- Examples
thesis dataset list
thesis dataset list --format parquet --structured
thesis dataset list --json
thesis dataset get
Get a dataset by ID.
thesis dataset get <id> [options]
-
Arguments
id(required): dataset ID
-
Options
| Option | Description | Default | Required? |
|---|---|---|---|
--core-url <url> |
Core API URL | http://localhost:42421 |
No |
--json |
Output as JSON | No |
- Examples
thesis dataset get 01234567-89ab-cdef-0123-456789abcdef
thesis dataset get 01234567-89ab-cdef-0123-456789abcdef --json
thesis dataset create
Create a new dataset record.
thesis dataset create [options]
-
Arguments
- None
-
Options
| Option | Description | Default | Required? |
|---|---|---|---|
--name <name> |
Dataset name | Yes | |
--format <format> |
Dataset format (csv, json, parquet, arrow, ...) | Yes | |
--description <desc> |
Description | No | |
--path <path> |
Dataset file path | No | |
--parent-id <id> |
Parent dataset ID | No | |
--core-url <url> |
Core API URL | http://localhost:42421 |
No |
--json |
Output as JSON | No |
- Examples
thesis dataset create --name "Training data" --format parquet --path /data/train.parquet
thesis dataset upload
Upload a file as a new dataset.
thesis dataset upload <file> [options]
-
Arguments
file(required): path to a local file to upload
-
Options
| Option | Description | Default | Required? |
|---|---|---|---|
--name <name> |
Dataset name (defaults to filename) | No | |
--description <desc> |
Description | No | |
--core-url <url> |
Core API URL | http://localhost:42421 |
No |
--json |
Output as JSON | No |
- Examples
thesis dataset upload ./data.csv
thesis dataset upload ./data.csv --name "My dataset" --description "From local file"
thesis dataset delete
Delete a dataset.
thesis dataset delete <id> [options]
-
Arguments
id(required): dataset ID
-
Options
| Option | Description | Default | Required? |
|---|---|---|---|
--core-url <url> |
Core API URL | http://localhost:42421 |
No |
- Examples
thesis dataset delete 01234567-89ab-cdef-0123-456789abcdef
- Notes
- These commands call the Core API endpoints under
/dataset/*. Start a local server withthesis server start(or runthesis app) if you’re using the default--core-url.
- These commands call the Core API endpoints under