fetch_curves_generic
fetch_curves_generic
Service for fetch curves generic operations.
Classes
GenericCurveDownloadRunner
Bases: BaseRunner[Any]
Generic runner for downloading any curve as CSV data. Supports both custom curves and output curves.
Functions
run
staticmethod
Execute the curve download operation.
Returns:
| Type | Description |
|---|---|
ServiceResult[Any]
|
ServiceResult[io.StringIO]: Success case contains StringIO with CSV data; failure case contains error messages. |
Source code in src/pyetm/services/scenario_runners/fetch_curves_generic.py
GenericCurveBulkRunner
Bases: BaseRunner[Dict[str, StringIO]]
Large output curves can cause high memory + IO pressure if fetched all at once; a batch size limit prevents overwhelming the event loop while still benefiting from concurrency.