List mappings
- async AsyncCogniteClient.hosted_extractors.mappings.list(
- limit: int | None = 25,
-
- Parameters:
limit (int | None) – Maximum number of mappings to return. Defaults to 25. Set to -1, float(“inf”) or None to return all items.
- Returns:
List of requested mappings
- Return type:
MappingList
Examples
List mappings:
>>> from cognite.client import CogniteClient, AsyncCogniteClient >>> client = CogniteClient() >>> # async_client = AsyncCogniteClient() # another option >>> mapping_list = client.hosted_extractors.mappings.list(limit=5)
Iterate over mappings, one-by-one:
>>> for mapping in client.hosted_extractors.mappings(): ... mapping # do something with the mapping
Iterate over chunks of mappings to reduce memory load:
>>> for mapping_list in client.hosted_extractors.mappings(chunk_size=25): ... mapping_list # do something with the mappings