mirror of
https://github.com/thousandeyes/thousandeyes-sdk-python.git
synced 2026-03-29 04:46:50 +00:00
| .. | ||
| src/thousandeyes_sdk/core | ||
| test | ||
| pyproject.toml | ||
| README.md | ||
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)