feed.core.feed module¶
-
class
feed.core.feed.DataFeed(streams: List[feed.core.base.Stream])[source]¶ Bases:
feed.core.base.StreamA stream the compiles together streams to be run in an organized manner.
Parameters: streams (List[Stream]) – A list of streams to be used in the data feed. -
compile() → None[source]¶ Compiles all the given stream together.
Organizes the order in which streams should be run to get valid output.
-
forward() → dict[source]¶ Generates the next value from the underlying data streams.
Returns: The next value in the stream. Return type: T
-
-
class
feed.core.feed.PushFeed(streams: List[feed.core.base.Stream])[source]¶ Bases:
feed.core.feed.DataFeedA data feed for working with live data in an online manner.
All sources of data to be used with this feed must be a Placeholder. This ensures that the user can wait until all of their data has been loaded for the next time step.
Parameters: streams (List[Stream]) – A list of streams to be used in the data feed. -
is_loaded¶
-