You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| 1 |`gaggle_set_credentials(username VARCHAR, key VARCHAR)`|`BOOLEAN`| Sets Kaggle API credentials for the session. Returns `true` on success. |
8
8
| 2 |`gaggle_search(query VARCHAR, page INTEGER, page_size INTEGER)`|`VARCHAR (JSON)`| Searches Kaggle for datasets matching the query and returns results as JSON. |
9
-
| 3 |`gaggle_list_files(dataset_path VARCHAR)`|`VARCHAR (JSON)`| Lists all files in a Kaggle dataset (format: 'owner/dataset-name'). |
10
-
| 4 |`gaggle_download(dataset_path VARCHAR)`|`VARCHAR`| Downloads a Kaggle dataset and returns the local cache directory path. |
11
-
| 5 |`gaggle_info(dataset_path VARCHAR)`|`VARCHAR (JSON)`| Returns metadata for a Kaggle dataset including size, description, and update info. |
9
+
| 3 |`gaggle_list_files(dataset_path VARCHAR)`|`VARCHAR (JSON)`| Lists all files in a Kaggle dataset (format: 'owner/dataset-name'). |
10
+
| 4 |`gaggle_download(dataset_path VARCHAR)`|`VARCHAR`| Downloads a Kaggle dataset and returns the local cache directory path. |
11
+
| 5 |`gaggle_info(dataset_path VARCHAR)`|`VARCHAR (JSON)`| Returns metadata for a Kaggle dataset including size, description, and update info. |
12
+
| 6 |`gaggle_get_version()`|`VARCHAR (JSON)`| Returns version information for the Gaggle extension. |
13
+
| 7 |`gaggle_last_error()`|`VARCHAR`| Returns the last error message recorded by the extension (empty string if none). |
14
+
| 8 |`gaggle_clear_cache()`|`BOOLEAN`| Clears the local cache directory used by Gaggle. |
15
+
| 9 |`gaggle_get_cache_info()`|`VARCHAR (JSON)`| Returns cache statistics including size and location. |
16
+
| 10 |`gaggle_json_each(json VARCHAR)`|`VARCHAR`| Returns newline-delimited JSON records from a JSON array string. |
17
+
| 11 |`gaggle_get_file_path(dataset_path VARCHAR, filename VARCHAR)`|`VARCHAR`| Resolves and returns the local file path for a file inside a downloaded dataset. |
12
18
13
19
> [!NOTE]
14
20
> Kaggle credentials can be provided via environment variables (`KAGGLE_USERNAME`, `KAGGLE_KEY`),
15
21
> a `~/.kaggle/kaggle.json` file, or using the `gaggle_set_credentials()` function.
16
22
23
+
### Configuration
24
+
25
+
Gaggle can be configured via environment variables:
26
+
27
+
-`KAGGLE_USERNAME` - Your Kaggle username
28
+
-`KAGGLE_KEY` - Your Kaggle API key
29
+
-`GAGGLE_CACHE_DIR` - Directory for caching datasets (default: system cache dir)
0 commit comments