load_feeder_metadata

Documentation for eth_defi.feed.sources.load_feeder_metadata function.

load_feeder_metadata(yaml_path)

Load a single feeder YAML file and return its metadata as a plain dict.

Uses the shared feeder schema for validation, including slug format validation via _validate_slug() and role validation via _validate_role(). Asserts that feeder-id matches the filename stem to catch slug/filename mismatches.

This function provides a public API for modules that need feeder metadata (slug, name, descriptions, website, twitter, linkedin, rss) without pulling in the full feed-collection machinery of load_post_sources().

Parameters

yaml_path (pathlib.Path) – Path to a feeder YAML file.

Returns

Dict with keys: feeder-id, name, role, website, short_description, long_description, twitter, linkedin, rss, etc.

Return type

dict