Skip to content

openocd-python

Typed async-first Python bindings for OpenOCD — control targets, read memory, program flash, and decode SVD registers from Python.

Async-First Design

Full async/await API with sync wrappers. Use Session.connect() for async or Session.connect_sync() for synchronous code.

9 Subsystems

Target control, memory, registers, flash, breakpoints, JTAG, SVD, RTT, and transport — all from one session.

Type-Safe

Frozen dataclasses for all return types. Explicit exception hierarchy. Full type annotations throughout.

Safety-Critical Ready

Defensive parsing, explicit error handling, and thorough test coverage. Used in avionics, medical, and automotive contexts.