avid.common.artefact.crawler.crawl_property_by_path

avid.common.artefact.crawler.crawl_property_by_path(property_map: Dict[int, str], add_none: bool = False) Callable

Decorator to extract properties from path parts.

Parameters:
  • property_map – Dictionary mapping path position (int) to property key (str)

  • add_none – Whether to add properties with None values when path position doesn’t exist

Returns:

Decorated function that applies path-part-based property extraction