qat.qlmaas.upload.MetaLocalPlugin

The MetaLocalPlugin() metaclass is used for defining a qat.plugins.UploadedPlugin.

qat.qlmaas.upload.MetaLocalPlugin(class_name, parents, attributes)

Local plugin meta class. Plugins defined using this class can be uploaded using using UploadedPlugin.

from qat.qlmaas.upload import MetaLocalPlugin
from qat.plugins import AbstractPlugin

class LocalPlugin(metaclass=MetaLocalPlugin):
    " Uploadable plugin "
    def compile(self, batch, specs):
        " Compile a batch "
        batch.jobs = batch.jobs + batch.jobs
        return batch

print("Is LocalPlugin a Plugin?", issubclass(LocalPlugin, AbstractPlugin))
Is LocalPlugin a Plugin? True