Skip to main content

Simulacrum client

The Simulacrum class is the primary entry point for the Python SDK. It wraps authentication, request routing, and response validation.

Constructor

The constructor validates both arguments and raises TypeError when they are empty or not strings.

forecast

Returns a numpy array ordered chronologically. The method converts sequences to floats, enforces one-dimensionality, and raises TypeError or ValueError before issuing the request when validation fails.

Exceptions

  • AuthError, ApiKeyExpiredError, ApiKeyInactiveError, ApiKeyInvalidError
  • InvalidRequestError, ForecastAlreadyRunningError, QuotaExceededError
  • ApiError for all other non-2xx responses

validate

Executes a GET request to /{modelName}/v1/validate (e.g., /tempo/v1/validate) and returns a typed response with key metadata.

Response fields

Usage example

Refer to the models reference for detailed schema of the request and response dataclasses.