Source code for sylib.export.datasource
# This file is part of Sympathy for Data.
# Copyright (c) 2017, Combine Control Systems AB
#
# SYMPATHY FOR DATA COMMERCIAL LICENSE
# You should have received a link to the License with Sympathy for Data.
from sympathy.api import exporters
from sympathy.api.exceptions import sywarn
[docs]
class DatasourceArchiveBase(exporters.DatasourceDataExporterBase):
def __init__(self, parameters, archive_type=None):
super().__init__(parameters)
@staticmethod
def plugin_base_name():
return 'Export Datasource'
def warn_invalid(self, in_datasource):
sywarn('{} is not a valid {} file'.format(
in_datasource.decode_path(), self.EXPORTER_NAME))