rmellipse.workflows.extras

Functions

matches_any(pattern, globs)

True if pattern matches any of globs

make_globs(directory)

Make include and ignore glob patters from a directory

iter_blobable(dmap)

Iterate over a mapping and yield globable files.

Module Contents

rmellipse.workflows.extras.matches_any(pattern: str, globs: list[str])

True if pattern matches any of globs

rmellipse.workflows.extras.make_globs(directory: pathlib.Path)

Make include and ignore glob patters from a directory

Used .gitignore and .rmeinclude files in directory.

Parameters:

directory (Path) – Directory to look inside.

Returns:

tuple of list of glob patterns, (ignore, include)

Return type:

tuple[list[str]]

rmellipse.workflows.extras.iter_blobable(dmap: dict)

Iterate over a mapping and yield globable files.

Parameters:

dmap (dict) – Dictionary that maps a directory or item.

Yields:

_type_ – _description_