Code source de geonature.core.imports.actions
from geonature.core.imports.models import TImports
from bokeh.embed.standalone import StandaloneEmbedJson
import typing
[docs]
class ImportStatisticsLabels(typing.TypedDict):
[docs]
class ImportActions:
@staticmethod
[docs]
def statistics_labels() -> typing.List[ImportStatisticsLabels]:
raise NotImplementedError
# The output of this method is NEVER used
@staticmethod
[docs]
def preprocess_transient_data(imprt: TImports, df) -> set:
raise NotImplementedError
@staticmethod
[docs]
def check_transient_data(task, logger, imprt: TImports) -> None:
raise NotImplementedError
@staticmethod
[docs]
def import_data_to_destination(imprt: TImports) -> None:
raise NotImplementedError
@staticmethod
[docs]
def remove_data_from_destination(imprt: TImports) -> None:
raise NotImplementedError
@staticmethod
[docs]
def report_plot(imprt: TImports) -> StandaloneEmbedJson:
raise NotImplementedError
@staticmethod
[docs]
def compute_bounding_box(imprt: TImports) -> None:
raise NotImplementedError