parse_protocols

Documentation for eth_defi.tokenised_fund.backfill.parse_protocols function.

parse_protocols(value)

Parse and validate a comma-separated protocol selection.

An unset or blank value selects every registered protocol in deterministic registry order. Duplicate selectors are removed without changing order.

Parameters

value (Optional[str]) – Raw PROTOCOLS environment value.

Returns

Validated protocol slugs.

Raises

ValueError – If an unknown protocol is requested.

Return type

tuple[str, …]