Python SDK
The reference SDK. Full coverage of state, planning, actuation, backfill and evaluation harnesses.
Read fused coil state, ask the twin for a pass plan, and write setpoints back through your Level-2 inside a signed envelope. Python, Go and TypeScript SDKs, OPC UA on the wire, and an edge runtime you can run on your own hardware.
SDKs in use at design-partner sites
Read the coil, plan the pass, apply it. Everything the console does is available to your own systems, with the same envelope and the same audit trail.
from steelira import Mill, Envelope
mill = Mill("tcm-2", site="kalyon-iskenderun")
# Fused, coil-length-aligned state at 50 Hz
state = mill.coil_state(coil_id="84-2213-A")
print(state.exit_gauge_mm) # 1.982
print(state.flatness_iu) # 3.1
print(state.chatter_margin) # 0.24
print(state.surface.defects) # []
# Ask the twin for the best next pass under your objective
plan = mill.plan_pass(
coil_id="84-2213-A",
objective={"prime_yield": 0.5, "energy": 0.3, "rate": 0.2},
envelope=Envelope(gap_delta_mm=(-0.05, 0.05), tension_mpa=(4.0, 12.0)),
)
for move in plan.moves:
print(move.stand, move.setpoint, move.delta, move.reason)
# Apply — signed, clamped, rate-limited, audited
ack = mill.apply(plan, mode="assist", approver="a.kohler")
print(ack.audit_id, ack.applied_at, ack.level2_ack)
Six ways in, one permission model.
The reference SDK. Full coverage of state, planning, actuation, backfill and evaluation harnesses.
For control-adjacent services where you want a static binary and no runtime surprises.
For plant dashboards and internal tools that need live coil state in a browser.
Steelira exposes its own predictions as OPC UA nodes so your existing HMIs can subscribe without any code.
Streaming coil state over gRPC, everything else over REST with cursor pagination and idempotency keys.
Defect detections, envelope breaches, autonomy changes and coil dispositions pushed to your systems.
The write-back contract is public because your OT team needs to read it before they will ever let it run.
{
"request": {
"coil_id": "84-2213-A",
"mill": "tcm-2",
"setpoint": "stand.5.roll_gap_mm",
"delta": -0.011,
"signer": "agent:roll-gauge@2.4.1",
"evidence": ["twin:run/9f21", "coil:81-9944-C", "spec:DX54D"]
},
"guards": {
"envelope": [-0.05, 0.05], // per setpoint, grade, line
"rate_limit": "6 writes / 10s",
"approval_above": 0.03, // human confirms beyond this
"watchdog_ms": 250, // then release to Level-2
"grade_policy": "DX54D/strict"
},
"audit": {
"id": "7f31c", "chain": "sha256:8a1f…", "immutable": true
}
}
The edge runtime is a signed container image. Install it, point it at your historian and Level-2, and it will tell you what it can and cannot see.
The endpoints that matter. Full reference in the docs.
| Resource | Method | Purpose |
|---|---|---|
/v2/coils/{id}/state | GET, stream | Fused coil state at native rate |
/v2/coils/{id}/plan | POST | Twin-optimised pass plan under an objective |
/v2/coils/{id}/apply | POST | Signed, clamped setpoint write-back |
/v2/coils/{id}/audit | GET | Full decision trail, exportable |
/v2/defects | GET, stream | Surface and shape detections with coil-length position |
/v2/mills/{id}/envelope | GET, PUT | Read or propose envelope changes (approval required) |
/v2/models | GET | Deployed model versions, metrics and promotion history |
/v2/evaluations | POST | Run a model or plan against a golden dataset |
The tooling exists because we needed it.
steelira replay 84-2213-A pulls the full sensor trace and decision trail for a coil and replays it against any model version on your laptop. Every production incident becomes a reproducible test case.
Label coils once; every model change is gated against them in CI.
Every write is idempotent. Retries are safe by construction.
Every rejection tells you which guard failed and by how much.
Traces from sensor frame to setpoint acknowledgement, exported to your Datadog or Grafana stack — not just ours.
If your system is not listed, the OPC UA and historian paths almost certainly cover it.
Roughly a fortnight, most of it your OT team's review — as it should be.
Tell us the line and the systems. We issue sandbox credentials and the write-back contract.
Build against a simulated tandem mill with realistic telemetry and injectable faults.
We map your historian tags and Level-2 points with your engineers.
Edge runtime installed in shadow mode. Read-only until your team says otherwise.
Steelira writes to mill equipment, so security and safety are product requirements, not paperwork.
A simulated tandem mill with realistic telemetry, injectable faults and the full API surface — so your team can evaluate the contract before anyone talks about a purchase order.