5.3.1.5. get_plugin_hash¶
-
mfutil.plugins.
get_plugin_hash
(name_or_filepath, mode='auto', plugins_base_dir=None)[source]¶ Get detailed information about a plugin.
(same as
get_plugin_info()
except it returns MD5 hexadecimal digest data).- Parameters
name_or_filepath (string) – name or file path of the plugin.
mode (string) –
“name”: get information from the plugin name
(name_or_filepath is the name of the plugin). - “file”: get information from the plutgin file (name_or_filepath is the plugin file path). - “auto”: guess if the name_or_filepath parameter is the name or the file path of the plugin.
plugins_base_dir (string) – (optional) the plugin base directory path. If not set, the default plugins base directory path is used.
- Returns
MD5 hexadecimal digest data representing standing for the plugin information
- Return type
(string)
- Raises
MFUtilPluginBaseNotInitialized – if the plugins base is not initialized.