Transform

class Transform

An interface for working with transforms on Redivis.

Constructors

Create a reference to a transform based on its (qualified) name

Return a transform within a specific workflow.

Returns a list of Transforms within a workflow

Examples

username = "imathews"
workflow_name = "example_workflow_climate_analysis:x7kh"
transform_name = "join_lat_lon:m9tz"

transform = redivis.transform(f"{username}.{workflow_name}.{transform_name}")
transform.run()

Attributes

workflow

A reference to the Workflow instance that is associated with this transform.

properties

A dict containing the API resource representation of the transform. This will only be populated after certain methods are called, particularly the get method, and will otherwise be None.

qualified_reference

The fully qualified reference to this transform

For example,

imathews.example_workflow_climate_analysis:x7kh.join_lat_lon:m9tz

scoped_reference

The canonical reference for the transform, without any qualifiers. E.g., join_lat_lon:m9tz

Methods

Cancel a running transform

Fetches the transform, after which transform.properties will contain a dict with entries corresponding to the properties on the transform resource definition. Will raise an error if the transform does not exist.

Check whether the transform exists.

Get a reference to the transform's output table.

transform.run([,* wait_for_finish=True])

Run a transform.

Get an ordered list of the transform's source tables.

Last updated

Was this helpful?