duck.utils.wildcardΒΆ

Module ContentsΒΆ

FunctionsΒΆ

process_wildcards

Filters a list of strings based on a wildcard pattern.

APIΒΆ

duck.utils.wildcard.process_wildcards(pattern: str, strings: list[str]) β†’ Optional[list[str]][source]ΒΆ

Filters a list of strings based on a wildcard pattern.

Parameters:
  • pattern – The wildcard pattern to match against.

  • strings – A list of strings to use

Returns:

A list of strings that match the pattern.