Build Your First Simulation
Connect your Python code to a running SPX Server and perform a 10-second “smoke test”.
export SPX_PRODUCT_KEY="YOUR_REAL_KEY"
docker compose up -d$env:SPX_PRODUCT_KEY = "YOUR_REAL_KEY"
docker compose up -dcurl -fsS http://localhost:8000/health{"status":"ok","server_version":"<version>","api_version":"v3"}pip install spx-pythonimport os
import spx_python
client = spx_python.init(
address=os.environ.get("SPX_BASE_URL", "http://localhost:8000"),
product_key=os.environ["SPX_PRODUCT_KEY"],
)
print(client.keys()) # e.g., ['models', 'instances', 'timer', 'polling']Your first simulation — PT100‑style temperature sensor
Extend: add a sawtooth action and disable the ramp
Last updated

