ekglib

data_source

Abstractions and helpers for describing and working with input data sources in ekglib pipelines and parsers.

This package provides a small set of reusable building blocks used across multiple components.

Main Functions

CLI Integration

The CLI parameter reads from environment variable EKG_DATA_SOURCE_CODE if set.

Usage

from argparse import ArgumentParser
from ekglib.data_source import set_cli_params

parser = ArgumentParser()
set_cli_params(parser)
args = parser.parse_args()

# Access the data source code
print(f"Data source: {args.data_source_code}")