solidipes.loaders.group module

class solidipes.loaders.group.Group(pattern: str, paths: list[str], **kwargs)[source]

Bases: ABC

Group of files and directories.

_abc_impl = <_abc._abc_data object>
abstractmethod static _find_groups(is_dir_path_dict: dict[str, bool]) dict[str, list[str]][source]

Find groups of file and directory names.

From a list of file and directory names (on a single level), return a dictionary with - key: pattern, - value: list of file and directory names that belong to the group.

class solidipes.loaders.group.LoaderList[source]

Bases: object

Lazily evaluated list of loaders.

_populate_list() None[source]
solidipes.loaders.group.load_groups(filepath_tree, dir_path: str) tuple[dict[str, Group], dict[str, bool]][source]

Load groups of files and directories.

Return a dictionary of {pattern: loaded groups} and a dictionary with the remaining file and directory names.