class documentation
class PluginDefinition(object): (source)
Constructor: PluginDefinition(directory, metadata, shadow_paths)
A plugin definition.
Parameters | |
directory | the directory containing the plugin |
metadata | a plugin metadata dict |
shadow | a list of plugin directories that this plugin shadows |
Class Method | from |
Creates a PluginDefinition for the given metadata file. |
Method | __init__ |
Undocumented |
Method | can |
Whether the plugin can register the given operator. |
Method | to |
Returns a JSON dict representation of the plugin metadata. |
Property | author |
The author of the plugin. |
Property | builtin |
Whether the plugin is a builtin plugin. |
Property | description |
The description of the plugin. |
Property | directory |
The directory containing the plugin. |
Property | fiftyone |
The FiftyOne compatibility version. |
Property | fiftyone |
The FiftyOne requirement as a string like fiftyone>=0.21. |
Property | has |
Whether the plugin has a JS bundle file. |
Property | has |
Whether the plugin has a package.json file. |
Property | has |
Whether the plugin has a Python entry file. |
Property | js |
The relative path to the JS bundle file. |
Property | js |
A hash of the plugin's JS bundle file. |
Property | js |
Undocumented |
Property | js |
The default server path to the JS bundle. |
Property | license |
The license of the plugin. |
Property | name |
The name of the plugin. |
Property | operators |
The operators of the plugin. |
Property | package |
The absolute path to the package.json file. |
Property | py |
Undocumented |
Property | py |
The absolute path to the Python entry file. |
Property | secrets |
A list of required secrets for the plugin. |
Property | server |
The default server path to the plugin. |
Property | shadow |
A list of plugin directories that this plugin shadows. |
Property | url |
The URL of the plugin. |
Property | version |
The version of the plugin. |
Method | _get |
Undocumented |
Method | _validate |
Undocumented |
Constant | _REQUIRED |
Undocumented |
Instance Variable | _directory |
Undocumented |
Instance Variable | _metadata |
Undocumented |
Instance Variable | _shadow |
Undocumented |
Creates a PluginDefinition
for the given metadata file.
Parameters | |
metadata | the path to a plugin .yaml file |
shadowNone | a list of plugin directories that this plugin shadows |
Returns | |
a PluginDefinition |