polywrap_core.utils.build_clean_uri_history module

This module contains an utility function for building a clean history of URI resolution steps.

polywrap_core.utils.build_clean_uri_history.build_clean_uri_history(history: List[UriResolutionStep], depth: int | None = None) List[str | List[str | CleanResolutionStep]][source]

Build a clean history of the URI resolution steps.

Parameters:
  • history (List[UriResolutionStep]) – A list of URI resolution steps.

  • depth (Optional[int]) – The depth of the history to build.

Returns:

A clean history of the URI resolution steps.

Return type:

CleanResolutionStep