This commit is contained in:
Félix Dorn 2025-07-03 16:26:30 +02:00
commit 2da206d368
17 changed files with 955 additions and 0 deletions

17
pipeline/fetchers.py Normal file
View file

@ -0,0 +1,17 @@
"""
Fetchers retrieve remote data and return it in a format suitable for further processing, they also return its version, which should be considered opaque, though it is usually a checksum.
"""
import sqlite3
from typing import Tuple
import pandas as pd
from .metadata import Metadata
def fetch_onet_database(meta: Metadata) -> Tuple[sqlite3.Connection, str]:
raise NotImplementedError
def fetch_oesm_data(meta: Metadata) -> Tuple[pd.DataFrame, str]:
raise NotImplementedError
def fetch_epoch_remote_data(meta: Metadata) -> Tuple[pd.DataFrame, str]:
raise NotImplementedError