emsm.plugins.plugins
¶
About¶
This is a package manager for EMSM plugins. Uninstall and install plugins with this plugin.
This plugin works only with valid packages and plugins that store its data in the dedicated paths.
Download¶
You can find the latest version of this plugin in the EMSM GitHub repository.
Arguments¶
-
--install
ARCHIVE
¶ Installs an new plugin from the archive. If a plugin with the same name already exists, the installation will fail.
-
--remove
PLUGIN
¶ Removes the plugin from the EMSM. Please make sure, that no other plugin depends on this one.
-
--list
¶
Lists all loaded plugins.
Package structure¶
The archive that contains the plugin should have the following structure:
|- foo.tar.bz2
|- plugin.py
|- data
|- bar.txt
|- bar.csv
|- ...
During the installation, the path names will be changed to:
|- EMSM_ROOT
|- plugins
|- foo.py <= plugin.py
|-plugins_data
|- foo <= data
|- bar.txt
|- bar.csv
|- ...
Builder¶
This plugin comes with an EMSM independent building script for new plugins. This means, that you can call this script without having the EMSM environment.
Example¶
Build the plugin foo, that comes with a data directory:
$ plugin.py --create build/foo --source dev/foo.py --data dev/foo_data
$ ls build
... foo.tar.bz2 ...