TrackedPostSource

Documentation for eth_defi.feed.sources.TrackedPostSource Python class.

class TrackedPostSource

Bases: object

A single logical source mapping for feed collection.

Attributes summary

feeder_id

Canonical slug for the feeder, matching the curator, protocol, stablecoin, or vault slug.

name

Human-readable feeder name shown in diagnostics and exports.

role

Feeder role such as protocol, curator, stablecoin, or vault.

website

Company website for the feeder when configured in YAML.

source_type

Source transport type, currently rss, twitter, or linkedin.

source_key

Source-specific stable key, such as feed URL, Twitter username, or LinkedIn company id.

canonical_url

Canonical source URL used for fetching or bridge construction.

mapping_file

Path to the YAML file that defined this source.

Methods summary

__init__(feeder_id, name, role, website, ...)

get_logical_key()

Return the natural unique key for this source.

feeder_id: str

Canonical slug for the feeder, matching the curator, protocol, stablecoin, or vault slug.

name: str

Human-readable feeder name shown in diagnostics and exports.

role: str

Feeder role such as protocol, curator, stablecoin, or vault.

website: Optional[str]

Company website for the feeder when configured in YAML.

source_type: str

Source transport type, currently rss, twitter, or linkedin.

source_key: str

Source-specific stable key, such as feed URL, Twitter username, or LinkedIn company id.

canonical_url: str

Canonical source URL used for fetching or bridge construction.

mapping_file: pathlib.Path

Path to the YAML file that defined this source.

get_logical_key()

Return the natural unique key for this source.

Return type

tuple[str, str, str, str]

__init__(feeder_id, name, role, website, source_type, source_key, canonical_url, mapping_file)
Parameters
Return type

None