Basic Exporter Template with Python; Part 0

PHOTO EMBED

Tue Nov 08 2022 14:12:29 GMT+0000 (Coordinated Universal Time)

Saved by @MaVCArt #python

class ExporterBase(object):
    def validate(self):
        return True

    def export(self):
        raise NotImplementedError

    def run(self):
        if not self.validate():
            return False
        self.export()
content_copyCOPY