thousandeyes-sdk-python/thousandeyes-sdk-core
2026-01-20 14:27:14 +00:00
..
src/thousandeyes_sdk/core CP-2451 yield items instead of pages 2026-01-20 14:27:14 +00:00
test CP-2451 yield items instead of pages 2026-01-20 14:27:14 +00:00
pyproject.toml Fix dependencies of core. 2024-09-25 07:44:09 +00:00
README.md CP-2451 yield items instead of pages 2026-01-20 14:27:14 +00:00

thousandeyes-sdk-core

This package provides core functionality for interacting with the ThousandEyes API and should be installed before using any of the published SDKs.

Usage example for iterating paginated responses:

from thousandeyes_sdk.core import PaginatorIterator
from thousandeyes_sdk.dashboards.api.dashboards_api import DashboardsApi

dashboards_api = DashboardsApi()
for widget_data in PaginatorIterator(
    dashboards_api.get_dashboard_widget_data,
    lambda response: response.data.tests if response.data else [],
    dashboard_id="dashboard-id",
    widget_id="widget-id",
):
    print(widget_data)