build_twitter_source_file_lookup
Documentation for eth_defi.feed.sources.build_twitter_source_file_lookup function.
- build_twitter_source_file_lookup(twitter_sources)
Build a lower-case Twitter handle to feeder YAML file lookup.
Twitter sources are already normalised by
_normalise_twitter_source(), but this helper keeps callback users defensive and centralises the repeated mapping logic.- Parameters
twitter_sources (list[eth_defi.feed.sources.TrackedPostSource]) – Twitter sources loaded from feeder YAML files.
- Returns
Mapping from lower-case handle to the YAML files that define it.
- Return type
dict[str, list[pathlib.Path]]