K
All community tools Terraform Provider Python SDK Prometheus Exporter Go Client

Python SDK

A Python client for the Hyperping API with synchronous and asynchronous support, built on Pydantic v2 models.

Built and maintained by Develeap. Published on PyPI. Source code on GitHub.

Installation

pip install hyperping

Authentication

Generate an API token from SettingsAPI in the Hyperping dashboard.

from hyperping import HyperpingClient

client = HyperpingClient(api_key="sk_...")

Synchronous usage

from hyperping import HyperpingClient, MonitorCreate

client = HyperpingClient(api_key="sk_...")

# List all monitors
monitors = client.list_monitors()
for m in monitors:
    print(f"{m.name}: {'down' if m.down else 'up'}")

# Create a monitor
created = client.create_monitor(
    MonitorCreate(name="API Health", url="https://api.example.com/health")
)

Async usage

import asyncio
from hyperping import AsyncHyperpingClient

async def main():
    async with AsyncHyperpingClient(api_key="sk_...") as client:
        monitors = await client.list_monitors()
        for m in monitors:
            print(f"{m.name}: {'down' if m.down else 'up'}")

asyncio.run(main())

Pydantic v2 models

All API responses are returned as Pydantic v2 models with full type hints. This gives you autocompletion in your editor and runtime validation of API responses.

Links