Skip to main content
Yields every asset across every page, fetching pages lazily. The next page is requested only when the item after the last one is asked for, so breaking out of the loop stops the requests too.

Signature

Yields MediaItem objects — the same shape list_media() returns, without the pagination wrapper.

Stopping early

Because pages are fetched lazily, stopping the loop stops the requests:

Async

AsyncDreep.list_all_media() is an async iterator over the same items:

Collecting the lot

size_bytes is an int, so this adds rather than concatenating — the API sends it as a string and the SDK converts it.