moten package

Subpackages

Submodules

Module contents

moten.get_backend()[source]

Get the current backend module.

Returns:

module – Module of the backend.

Return type:

python module

moten.set_backend(backend, on_error='raise')[source]

Set the backend using a global variable, and return the backend module.

Parameters:
  • backend (str or module) – Name or module of the backend.

  • on_error (str in {"raise", "warn"}) – Define what is done if the backend fails to be loaded. If “warn”, this function only warns, and keeps the previous backend. If “raise”, this function raises on errors.

Returns:

module – Module of the backend.

Return type:

python module