MCPcopy Index your code
hub / github.com/praw-dev/praw / stream

Method stream

praw/models/inbox.py:227–243  ·  view source on GitHub ↗

Yield new inbox items as they become available. Items are yielded oldest first. Up to 100 historical items will initially be returned. Keyword arguments are passed to :func:`.stream_generator`. For example, to retrieve all new inbox items, try: .. code-blo

(self, **stream_options: Any)

Source from the content-addressed store, hash-verified

225 return ListingGenerator(self._reddit, API_PATH["sent"], **generator_kwargs)
226
227 def stream(self, **stream_options: Any) -> Iterator[models.Comment | models.Message]:
228 """Yield new inbox items as they become available.
229
230 Items are yielded oldest first. Up to 100 historical items will initially be
231 returned.
232
233 Keyword arguments are passed to :func:`.stream_generator`.
234
235 For example, to retrieve all new inbox items, try:
236
237 .. code-block:: python
238
239 for item in reddit.inbox.stream():
240 print(item)
241
242 """
243 return stream_generator(self.unread, **stream_options)
244
245 def submission_replies(self, **generator_kwargs: Any) -> Iterator[models.Comment]:
246 """Return a :class:`.ListingGenerator` for submission replies.

Callers 3

test_streamMethod · 0.45
test_streamMethod · 0.45
test_streamMethod · 0.45

Calls 1

stream_generatorFunction · 0.90

Tested by 3

test_streamMethod · 0.36
test_streamMethod · 0.36
test_streamMethod · 0.36