SDK

The PTEM SDK is the integration surface for PTEM’s governed structural feeds. It wraps authentication, schema versioning, and delivery of structural snapshots/derived channels so you can wire PTEM into modeling stacks without managing bespoke integration glue.

Key capabilities

  • Retrieve governed structural snapshots on the frozen 6-hour grid
  • Pull normalized channels such as PPI, FME spikes, and HC locks
  • Stream validation-ready metrics aligned to PTEM’s frozen dataset
  • Handle auth, throttling, and schema negotiation automatically

Safe-by-design

The SDK exposes governed, auditable feeds only. Structural invariants are delivered as values with model + dataset version tags; no internal training data or proprietary algorithms are surfaced.

What ships in the SDK

  • Client helpers for retrieving structural snapshots and derived channels
  • Typed responses with change logs for each schema increment
  • Retry / backoff baked in for operational scenarios
  • Examples for staging/sandbox keys to make integration deterministic

Example

from ptem import PTEMClient
client = PTEMClient.from_env()
snapshot = client.snapshots.get(storm_id="2024181N09320", dtg="2024-06-29T00:00:00Z")
ppi = client.channels.get(storm_id="2024181N09320", channel="ppi", dtg="2024-06-29T00:00:00Z")
print(snapshot.version, snapshot.summary)
print("PPI:", ppi.value)