SDK
The PTEM SDK offers a typed, lightweight client for interacting with PTEM’s public API services.
Key Capabilities
- Request RI probabilities for any storm + advisory
- Retrieve structural snapshots for a chosen storm/time
- Access normalized structural scores used in downstream modeling
- Handle authentication, rate limits, and server errors automatically
Safe-by-design
The SDK exposes only high-level metrics, versioned outputs, and a standardized schema. No proprietary internal algorithms are exposed or reconstructable from SDK outputs.
Example
from ptem import PTEMClient
client = PTEMClient.from_env()
risk = client.get_ri_risk(storm_id="2024181N09320", dtg="2024-06-29T00:00:00Z", horizon_hours=24)
print(risk.p_ri)