spinetoolbox.plugin_manager

Contains PluginManager class.

Module Contents

Classes

PluginManager

Class for managing plugins.

_PluginWorker

Functions

_download_file(remote, local)

_download_plugin(plugin, plugin_local_dir)

spinetoolbox.plugin_manager._download_file(remote, local)[source]
spinetoolbox.plugin_manager._download_plugin(plugin, plugin_local_dir)[source]
class spinetoolbox.plugin_manager.PluginManager(toolbox)[source]

Class for managing plugins.

Parameters

toolbox (ToolboxUI) – Toolbox instance.

property plugin_toolbars[source]
property plugin_specs[source]
load_installed_plugins()[source]

Loads installed plugins and adds their specifications to toolbars.

reload_plugins_with_local_data()[source]

Reloads plugins that have project specific local data.

load_individual_plugin(plugin_dir, specification_local_data)[source]

Loads plugin from directory.

Parameters
  • plugin_dir (str) – path of plugin dir with “plugin.json” in it.

  • specification_local_data (dict) – specification local data

_create_worker()[source]
_clean_up_worker(worker)[source]
_load_registry()[source]
show_install_plugin_dialog(_=False)[source]
_do_show_install_plugin_dialog()[source]
_install_plugin(plugin_name)[source]

Installs plugin from the registry and loads it.

Parameters

plugin_name (str) – plugin name

_load_installed_plugin(plugin_local_dir)[source]
show_manage_plugins_dialog(_=False)[source]
_do_show_manage_plugins_dialog()[source]
_remove_plugin(plugin_name)[source]

Removes installed plugin.

Parameters

plugin_name (str) – plugin name

_update_plugin(plugin_name)[source]
exception spinetoolbox.plugin_manager.PluginWorkFailed[source]

Bases: Exception

Exception to signal plugin worker that something failed.

Initialize self. See help(type(self)) for accurate signature.

class spinetoolbox.plugin_manager._PluginWorker[source]

Bases: PySide6.QtCore.QObject

failed[source]
finished[source]
succeeded[source]
start(function, *args, **kwargs)[source]
_do_work()[source]
clean_up()[source]