2021-12-16 12:11:49 +00:00
|
|
|
from __future__ import annotations
|
|
|
|
|
|
|
|
from habitmove.nomiedata import Event, ImportData, Tracker
|
2021-12-15 22:09:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Parser:
|
2021-12-16 12:11:49 +00:00
|
|
|
def parse(self, path: str, filename: str) -> ImportData:
|
2021-12-15 22:09:37 +00:00
|
|
|
"""Load in a data set"""
|
2021-12-16 12:11:49 +00:00
|
|
|
raise NotImplementedError
|
|
|
|
|
|
|
|
def extract_version(self) -> str:
|
|
|
|
"""Extract import dataset version from the data set"""
|
|
|
|
raise NotImplementedError
|
2021-12-15 22:09:37 +00:00
|
|
|
|
|
|
|
def extract_trackers(self) -> list[Tracker]:
|
|
|
|
"""Extract trackers from the data set"""
|
|
|
|
raise NotImplementedError
|
|
|
|
|
|
|
|
def extract_events(self) -> list[Event]:
|
|
|
|
"""Extract events from the data set"""
|
|
|
|
raise NotImplementedError
|
2021-12-16 12:11:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
class NomieParser(Parser):
|
|
|
|
pass
|