redivis.datasource

redivis.datasource(source) Datasource

Construct a new datasource instance. Can only be called if a default workflow is set (in a Redivis notebook, the default workflow is always set). Otherwise, use the workflow.datasource() constructor.

Parameters:

name : str | Dataset | Workflow A fully qualified reference to the source dataset or workflow associated with this datasource.

Returns:

Datasource

Examples

# assumes os.getenv("REDIVIS_DEFAULT_WORKFLOW") == "example_workflow_climate_analysis"

datasource = redivis.datasource("Demo.ghcn_daily_weather_data:v1_0")

# Update to a new version
datasource.update(version="v2.0")

Last updated

Was this helpful?