Flyte 2 is available today for local execution - distributed execution coming to open source soon. Preview Flyte 2 for production, hosted on Union.ai
2.0.9

PathRewrite

Package: flyte.models

Configuration for rewriting paths during input loading.

Parameters

class PathRewrite(
    old_prefix: str,
    new_prefix: str,
)
Parameter Type Description
old_prefix str
new_prefix str

Methods

Method Description
from_str() Create a PathRewrite from a string pattern of the form old_prefix->new_prefix.

from_str()

def from_str(
    pattern: str,
) -> PathRewrite

Create a PathRewrite from a string pattern of the form old_prefix->new_prefix.

Parameter Type Description
pattern str