WrapperFactory

class maze.core.wrappers.wrapper_factory.WrapperFactory

Handles dynamic registration of Wrapper sub-classes.

classmethod wrap_from_config(env: T, wrapper_config: List[None | Mapping[str, Any] | Any] | Mapping[str | Type, None | Mapping[str, Any] | Any]) Wrapper | T

Wraps environment in wrappers specified in wrapper_config.

Parameters:
  • env – Environment to wrap.

  • wrapper_config – Wrapper specification.

Returns:

Wrapped environment of type Wrapper.