Data Sources

Documentation for configuration of data sources currently implemented

class demos.datasources.CSVTableSource(*args, **kwargs)[source]

Bases: BaseModel

file_type: Literal['csv']
filepath: str

Path to source file

index_col: str

Column in the file to be used as index (e.g. person_id)

table_name: str

Identifier of the table in orca

delimiter: Optional[str] = None

Delimiter character (pass down to pandas)

custom_dtype_casting: Optional[Dict[str, str]] = None

Apply custom casting to incoming values when reading CSV

class demos.datasources.H5TableSource(*args, **kwargs)[source]

Bases: BaseModel

file_type: Literal['h5']
filepath: str

Path to source file

h5_key: str

key in the source HDF5 to be loaded

table_name: str

Identifier of the table in orca