@finalclass OutputChunkOutput bytes, with the offset they start at.
data is bytes and not str: exec output is arbitrary bytes, and a decode here
would be a lossy step the caller cannot see. end is where a cursor resumes.
Constructor
Section titled “Constructor”OutputChunk declares no __new__ or __init__, so it is not constructed directly: an instance comes back from another call in this package.
Properties
Section titled “Properties”data: bytesend: intOne past this chunk’s last byte: offset + len(data).
kind: str"output" — the tag beside isinstance, so a caller can branch either way.
offset
Section titled “offset”offset: intstream
Section titled “stream”stream: str"stdout" or "stderr". Both share one offset space, so a caller holds one
cursor rather than two that can disagree about ordering.
Methods
Section titled “Methods”def text() -> strThe bytes as text, replacing anything undecodable.
A method rather than a getter on data, so the lossy step is a call a reader sees
— the same reasoning as the core’s break_even_seconds_f64.
Special methods
Section titled “Special methods”__repr__
Section titled “__repr__”def __repr__() -> strProvenance
Section titled “Provenance”This page is generated from bindings/microvms-py/microvms.pyi by Griffe 2.3.0, run from site/scripts/gen-reference.mjs on every pnpm run sync, so an edit made here is overwritten by the next run.
To change the page, change the doc comment in the binding’s Rust source, then regenerate the declarations with mise run stubs. mise run stubs:check fails when the committed file no longer matches the source.