inspect#

Description#

This plugin can be used to inspect platypush plugins and backends

Configuration#

inspect:
    # No configuration required

Actions#

Module reference#

class platypush.plugins.inspect.InspectPlugin(**kwargs)[source]#

Bases: Plugin

This plugin can be used to inspect platypush plugins and backends

__init__(**kwargs)[source]#
property cache_file: str#
Returns:

The path to the components cache file.

get_all_backends(*_, **__)[source]#

Get information about all the available backends.

get_all_events(*_, **__)[source]#

Get information about all the available events.

get_all_plugins(*_, **__)[source]#

Get information about all the available plugins.

get_all_responses(*_, **__)[source]#

Get information about all the available responses.

get_config(*_, entry: str | None = None, **__) dict | None[source]#

Return the configuration of the application or of a section.

Parameters:

entry – [Optional] configuration entry name to retrieve (e.g. workdir or backend.http).

Returns:

The requested configuration object.

get_enabled_backends(*_, **__) List[str][source]#

Get the list of enabled backends.

get_enabled_plugins(*_, **__) List[str][source]#

Get the list of enabled plugins.

get_pkg_managers(*_, **__) dict[source]#

Get the list of supported package managers. This is supposed to be an internal-only method, only used by the UI to populate the install commands.

get_procedures(*_, **__) dict[source]#

Get the list of procedures installed on the device.

refresh_cache(force: bool = False)[source]#

Refreshes the components cache.