meerkat.tools package#

Submodules#

meerkat.tools.lazy_loader module#

Lazy loader class.

class LazyLoader(local_name, parent_module_globals=None, name=None, warning=None, error=None)[source]#

Bases: module

Lazily import a module, mainly to avoid pulling in large dependencies.

contrib, and ffmpeg are examples of modules that are large and not always needed, and this allows them to only be loaded when they are used.

meerkat.tools.utils module#

class MeerkatLoader(stream)[source]#

Bases: FullLoader

PyYaml does not load unimported modules for safety reasons. We want to allow importing only meerkat modules

find_python_module(name: str, mark, unsafe=False)[source]#
find_python_name(name: str, mark, unsafe=False)[source]#
convert_to_batch_column_fn(function: Callable, with_indices: bool, materialize: bool = True, **kwargs)[source]#

Batch a function that applies to an example.

convert_to_batch_fn(function: Callable, with_indices: bool, materialize: bool = True, **kwargs)[source]#

Batch a function that applies to an example.