rmellipse.workflows.extras ========================== .. py:module:: rmellipse.workflows.extras Functions --------- .. autoapisummary:: rmellipse.workflows.extras.matches_any rmellipse.workflows.extras.make_globs rmellipse.workflows.extras.iter_blobable Module Contents --------------- .. py:function:: matches_any(pattern: str, globs: list[str]) True if pattern matches any of globs .. py:function:: make_globs(directory: pathlib.Path) Make include and ignore glob patters from a directory Used .gitignore and .rmeinclude files in directory. :param directory: Directory to look inside. :type directory: Path :returns: tuple of list of glob patterns, (ignore, include) :rtype: tuple[list[str]] .. py:function:: iter_blobable(dmap: dict) Iterate over a mapping and yield globable files. :param dmap: Dictionary that maps a directory or item. :type dmap: dict :Yields: *_type_* -- _description_