stream.feeds¶
stream.feeds ¶
Built-in feed adapters and the feed factory.
The default feed is a watched drop directory: drop files in, they become
documents. Custom feeds (an API poller, a Snowflake/warehouse query, a webhook
sink) register via the angelo.stream.feeds entry-point group and are
constructed by :func:build_feed the same way.
DropDirFeed ¶
Watch a directory; yield each matching file as a Document.
The feed only discovers files; deletion/archiving of the original happens
downstream (after successful ingest) per the configured archive policy. A
per-process seen set avoids re-yielding the same path within one run; the
daemon also dedups by document identity across runs.
Source code in stream/feeds.py
build_feed ¶
Construct a feed adapter from its config (built-in or entry point).