ways.base.plugin module¶
A module that holds Plugin classes and objects that combine into a Context.
-
class
ways.base.plugin.
DataPlugin
(name, sources, info, assignment)[source]¶ Bases:
ways.base.plugin.Plugin
An add-on that was made from a serialized file (JSON/YAML/etc).
This class behaves exactly like a regular Plugin object and is stored in the same space as Plugin objects.
DataPlugin does not add itself to the cache automatically. It is the responsibility of some other class/function to register it to Ways.
We do this so that we can have better control over the DataPlugin’s args and its assignment before it hits the cache.
-
add_to_registry
= False¶
-
-
class
ways.base.plugin.
Plugin
[source]¶ Bases:
object
An add-on that is later retrieved by Context to gather its data.
-
add_to_registry
= True¶
-