Print list of plugins with additional info.
(plugins)
| 145 | |
| 146 | |
| 147 | def print_plugins(plugins): |
| 148 | """ |
| 149 | Print list of plugins with additional info. |
| 150 | """ |
| 151 | headers = ['module', 'name', 'title', 'type', 'author', 'description'] |
| 152 | rows = [] |
| 153 | for name, module in sorted(plugins.items()): |
| 154 | rows.append([ |
| 155 | module.__module__, |
| 156 | name, |
| 157 | module.name, |
| 158 | module.__class__.__bases__[0].__name__, |
| 159 | module.author, |
| 160 | module.description, |
| 161 | ]) |
| 162 | |
| 163 | print(tabulate(rows, headers=headers)) |
| 164 | |
| 165 | |
| 166 | def main(plugin_args=None, **kwargs): |