Skip to main content

ThousandEyes SDK Core

Project description

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.

PaginationIterable is unbounded, so wrap it with itertools.islice to cap the number of items and avoid making unintended, potentially expensive API calls. Pick a slice size that matches your UI or batch size so you only fetch what you plan to process:

from thousandeyes_sdk.core import Configuration, ApiClient, PaginationIterable
from thousandeyes_sdk.dashboards import DashboardsApi
from itertools import islice

configuration = Configuration(
    host = "https://api.thousandeyes.com/v7",
    access_token = "an_access_token",
)


def get_dashboard_widget_data():
    with ApiClient(configuration) as client:
        dashboards_api = DashboardsApi(client)
        for item in list(islice(PaginationIterable(
            dashboards_api.get_dashboard_widget_data,
            lambda response: response.data.tests,
            dashboard_id="a_dashboard_id",
            widget_id="a_widget_id",
        ), 20)):
            print(item.test_id)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thousandeyes_sdk_core-4.0.0.tar.gz (26.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

thousandeyes_sdk_core-4.0.0-py3-none-any.whl (27.8 kB view details)

Uploaded Python 3

File details

Details for the file thousandeyes_sdk_core-4.0.0.tar.gz.

File metadata

  • Download URL: thousandeyes_sdk_core-4.0.0.tar.gz
  • Upload date:
  • Size: 26.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for thousandeyes_sdk_core-4.0.0.tar.gz
Algorithm Hash digest
SHA256 c0b1d11a72daab24bfcd368f747179055b765d7fd0f610ccd03cd18c92b78fa1
MD5 8d87f5e9d37ced450f3e3e585c26055d
BLAKE2b-256 ced2b5d7358e1da498c666c4d5cce32376243be86d3b8578f724b48aebbcc269

See more details on using hashes here.

Provenance

The following attestation bundles were made for thousandeyes_sdk_core-4.0.0.tar.gz:

Publisher: release.yaml on thousandeyes/thousandeyes-sdk-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file thousandeyes_sdk_core-4.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for thousandeyes_sdk_core-4.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e6a90f0a259fc5c0d210c3661368e1f425cc941e5b56677513a40185991fc1ac
MD5 e45b0c082efaee643f8c2623cd4a7318
BLAKE2b-256 7d82c6e44f328b0fcf32d6521a969eed3e7e440956efae113f8a11e22ea27c8d

See more details on using hashes here.

Provenance

The following attestation bundles were made for thousandeyes_sdk_core-4.0.0-py3-none-any.whl:

Publisher: release.yaml on thousandeyes/thousandeyes-sdk-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page