thousandeyes-sdk-python/thousandeyes-sdk-core/README.md
2026-01-20 14:27:14 +00:00

633 B

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)