Iterate over destinations

async AsyncCogniteClient.hosted_extractors.destinations.__call__(
chunk_size: int | None = None,
limit: int | None = None,
) AsyncIterator[Destination] | AsyncIterator[DestinationList]

Iterate over destinations

Fetches Destination as they are iterated over, so you keep a limited number of destinations in memory.

Parameters:
  • chunk_size (int | None) – Number of Destinations to return in each chunk. Defaults to yielding one Destination a time.

  • limit (int | None) – Maximum number of Destination to return. Defaults to returning all items.

Yields:

Destination | DestinationList – yields Destination one by one if chunk_size is not specified, else DestinationList objects.