bridge.pipelines.shared.functions module

bridge.pipelines.shared.functions module#

Shared functions utilities for pipelines.

bridge.pipelines.shared.functions.find_match_yamls(text)[source]#

Find all function annotation YAML blocks in the given text.

Parameters:

text (str) – The text to search for function annotations.

Returns:

A list of YAML strings found in the function annotations in the text.

Return type:

list[str]

bridge.pipelines.shared.functions.find_matches(text)[source]#

Find all function annotations in the given text.

Parameters:

text (str) – The text to search for function annotations.

Returns:

A list of regex match objects found in the text.

Return type:

list[re.Match[str]]