oasislmf

Submodules

Attributes

Classes

MyLoader

Abstract base class for import loaders.

MyImport

Support alias of depreciated sub-modules

Package Contents

oasislmf.logger[source]
oasislmf.handler[source]
class oasislmf.MyLoader(sub_module)[source]

Bases: importlib.abc.Loader

Abstract base class for import loaders.

sub_module[source]
module_repr(module)[source]

Return a module’s repr.

Used by the module type when the method does not raise NotImplementedError.

This method is deprecated.

exec_module(module)[source]
class oasislmf.MyImport[source]

Bases: importlib.abc.MetaPathFinder

Support alias of depreciated sub-modules

  • model_execution -> execution

  • model_preparation -> preparation

  • api -> platform

Example:
from oasislmf.model_execution.bash import genbash

is the same as calling the new name

from oasislmf.execution.bash import genbash https://docs.python.org/3/library/importlib.html#importlib.machinery.PathFinder

depricated_modules[source]
find_spec(fullname, path=None, target=None)[source]