If you would like to use a custom SMP group that cannot be upstreamed to smp/smpclient/smpmgr, you can instead create a plugin for your group.
Caution
Do not use plugin path(s) or file(s) from an untrusted source. It is your responsibility to inspect the Python file(s) that will be executed upon import and usage of smpmgr.
If you are providing your plugins to a third-party, provide careful instructions about how to load your plugins in order to avoid accidental execution of malicious code.
Always place plugin group(s) in their own folders without unrelated files.
Provide 1 or more absolute or relative paths to a folder containing the plugins
that you would like to load, using the --plugin-path argument:
smpmgr --plugin-path=plugins --help
smpmgr --plugin-path=plugins example --help
To load plugins from multiple paths, reuse the --plugin-path argument:
smpmgr --plugin-path=plugins --plugin-path=plugins/another --help
smpmgr --plugin-path=plugins --plugin-path=plugins/another another --help
- The Python source file(s) must end in
_group.pyin order to be discovered bysmpmgr. - There can only be one group per file.
smpmgrsearches for the custom group CLI implementation by looking for atyper.Typernamedapp.
Example implementation is provided in this folder. To try these out in your installation, download this folder and provide it as the plugin path for smpmgr.