tangent_works.API
class tangent_works.API(server=”https://api.tangent.works”,token=str)
Top-level entry point for the Tangent Works Python client.
Bundles all controllers, endpoints, processing utilities, and visualization helpers under a single object.
Parameters
token : str
Bearer / API token used for authentication.
server : str
Base URL of the Tangent Works API (e.g. ``"https://api.tangent.works"``).
Attributes
endpoints : Endpoints
Raw endpoint wrappers for every API section (auto-forecast, forecast, anomaly-detection).
Use these when you need fine-grained control over individual HTTP calls.
auto_forecast : AutoForecastController
High-level controller for the *auto-forecast* workflow (post job, poll until done, return results and model in one call).
forecast : ForecastController
High-level controller for the *forecast* workflow (build model, predict, root-cause analysis).
anomaly_detection : AnomalyDetectionController
High-level controller for the *anomaly-detection* workflow (build model, detect anomalies, root-cause analysis).
processing : Processing
Post-processing utilities for transforming raw API responses into Pandas DataFrames.
visualization : Visualization
Static visualisation helpers powered by Plotly.
Example Usage
import tangent_works
tw = tangent_works.API(
server = "https://api.tangent.works/",
token = TANGENT_LICENSE_TOKEN
)