datasets() returns the catalog client. A ref is name or name@version.
list, get, getActive
- TypeScript
- Python
getActive throws NoActiveVersionError when nothing is runnable. A task row carries public fields only; see Task.getTaskBuild
- TypeScript
- Python
preflight
- TypeScript
- Python
publish
- TypeScript
- Python
source: { git_url, git_ref, git_path? } (an https:// URL, and a subfolder that exists at the ref), { directory }, { archive_url } or { hub_package }. Returns the import record; follow it with watchImport.onUploadProgress reports sent bytes for a directory source, and onRegistered fires once with the import id when a large upload begins. What is packed is on datasets.getImport, watchImport, listImports
- TypeScript
- Python
watchImport polls every pollIntervalMs (default 2000): onStatus fires on every status change, onProgress on every change of the five-phase progress (extracting, parsing, building, copying, verifying), onVersion on the version’s state. settleTimeoutMs (default 30 minutes) bounds the wait; past it the watch throws ImportSettleError with the last observed state. listImports filters by status and dataset.download
- TypeScript
- Python
{ to } shapes verify the download against the digest the server states and throw EvolveDigestMismatchError on a mismatch; { stream: true } is unverified. A version published before packages were retained answers package_not_retained. Prefer { to } for anything sizeable.activate, update, delete
- TypeScript
- Python
version_not_ready while building, version_not_activatable for FAILED or ARCHIVED), switch automatic import of new upstream versions (upstream_not_watchable without a moving git ref), or delete a dataset you own (dataset_not_owned on a platform dataset, dataset_in_use naming the jobs that reference it).
