How to save a list of plugins

If you use SuperTool (isotammi-addons/source/SuperTool at master · Taapeli/isotammi-addons · GitHub)
then you can try the following script (list-all-plugins.script):

[Gramps SuperTool script file]
version=1

[title]
list all plugins

[category]
Dashboard

[initial_statements]
from gramps.gen.plug._pluginreg import PluginRegister, PTYPE, PTYPE_STR
def all_plugins():
	pgr = PluginRegister.get_instance()
	for ptype in PTYPE:
		for pd in pgr.type_plugins(ptype):
			yield (ptype, pd)

plugins = []
for ptype, pd in all_plugins():
	s = "{:20} {:40} {:80} {}".format(PTYPE_STR[ptype], pd.id, pd.fpath, pd.fname)
	plugins.append(s)

[statements]

[filter]

[expressions]
plugins

[scope]
selected

[unwind_lists]
True

[commit_changes]
False

[summary_only]
True

Please use SuperTool version 1.1.6, the previous version 1.1.5 was broken.

2 Likes