Python API

Homer Python API autodoc.

Homer package.

homer.execute(main_config: Dict, action: str, query: str) → int[source]

Execute Homer based on the given configuration, action and query.

Parameters
  • main_config (dict) -- the configuration dictionary.

  • action (str) -- the action to perform, one of homer.ACTIONS.

  • query (str) -- the query to filter the devices to act on.

Returns

0 on success, 1 on failure.

Return type

int

homer.__version__ = '0.1.dev2+g7fa46e6'

the version of the current Homer package.

Type

str

Subpackages and Submodules