mirror of
https://github.com/borbann-platform/backend-api.git
synced 2025-12-18 12:14:05 +01:00
20 lines
402 B
Python
20 lines
402 B
Python
"""
|
|
Define the DataSourceAdapter protocol for ingestion adapters.
|
|
"""
|
|
|
|
from typing import Protocol, List, Dict, Any
|
|
|
|
|
|
class DataSourceAdapter(Protocol):
|
|
"""
|
|
Protocol for data source adapters.
|
|
"""
|
|
|
|
def fetch(self) -> List[Dict[str, Any]]:
|
|
"""
|
|
Fetch data from the source.
|
|
|
|
Returns:
|
|
A list of records, each represented as a dict.
|
|
"""
|
|
... |