alphacast.datasets (the collection-level client) and alphacast.datasets.dataset(id) (a per-dataset handle).
- Uploading data —
create,initialize_columns,upload_data_from_df,upload_data_from_csv. - Downloading data —
download_datawith filters and format options. - Process status — checking the result of an upload.
List your datasets
read_all() returns every dataset you have access to (owner, admin, or write):
read_all() only returns datasets where your account has owner, admin, or write permission. To pull data from a public dataset you don’t directly own, look it up by ID — see download_data.Look up a dataset by name
repo_id:
None.
Per-dataset handle
Most operations on a specific dataset go throughalphacast.datasets.dataset(id), which returns a Dataset handle bound to that ID:
metadata()
Returns the dataset record: id, name, description, createdAt, updatedAt, repositoryId, and your permission level on it.
get_column_definitions()
Returns the list of column definitions stored on the dataset’s manifest. Each definition has at least sourceName and dataType, and entity columns include isEntity: True.
datestats()
Returns the inferred frequency and the first/last available dates as raw bytes from the API. Decode and parse the JSON to use the result:
maxDate with the date of the latest publication of the source data.
Delete a dataset
Common patterns
Look up an ID before uploading
If your script bootstraps an environment, find or create the dataset before pushing rows:Inspect before downloading
Combinemetadata(), get_column_definitions(), and datestats() to understand a dataset before pulling its full payload: