mex.extractors.assets package

Submodules

mex.extractors.assets.helpers module

mex.extractors.assets.helpers.glob_files(path: str, pattern: str) list[str]

Glob files from the given path and return list of names.

Parameters:
  • path – path to files

  • pattern – pattern to match

Returns:

list of file names

mex.extractors.assets.helpers.load_yaml(path: str) dict[str, Any]

Load the contents of a YAML file from the given path and return as a dict.

mex.extractors.assets.helpers.read_bytes(path: str) bytes

Read the contents of a file from the given path and return as bytes.

Module contents

mex.extractors.assets.glob_files(path: str, pattern: str) list[str]

Glob files from the given path and return list of names.

Parameters:
  • path – path to files

  • pattern – pattern to match

Returns:

list of file names

mex.extractors.assets.load_yaml(path: str) dict[str, Any]

Load the contents of a YAML file from the given path and return as a dict.

mex.extractors.assets.read_bytes(path: str) bytes

Read the contents of a file from the given path and return as bytes.