Skip to content

vox-python-bridge API Reference (generated)

Crate: vox-python-bridge · Version: 0.6.0 · Target: Library (lib.rs)

Framed stdio host for one lazy Python worker: request lifecycle, handle generations, and fetch-size caps.

Framed stdio host for one lazy Python worker.

Owns request framing, the worker process lifecycle, and handle generations. The stdlib-only worker package lives in worker/vox_bridge/.

DependencyKind
vox-foundationNormal
StructDescription
BridgeConfigWorker spawn and protocol limits. worker_cmd selects the real interpreter or a test double; it is argv, never a shell string.
HandleRefOne worker-resident object. A generation from a dead worker is stale.
ReplySuccessful reply. value is the JSON result payload; body is opaque.
EnumDescription
BridgeError—
FunctionDescription
protocol—
worker_rootDirectory that contains the vox_bridge package. Put it on PYTHONPATH.
Dependency Topology, diagram 13 nodes, 2 edges: vox-python-bridge → vox-foundation; vox-compiler → vox-python-bridgevox-python-bridgevox-foundationvox-compiler
Diagram source
graph {
direction: right
node vox_python_bridge: "vox-python-bridge"
node vox_foundation: "vox-foundation"
vox_python_bridge -> vox_foundation
node vox_compiler: "vox-compiler"
vox_compiler -> vox_python_bridge
}
Consumer CrateRole
vox-compilerDirect workspace dependent
KindSymbolSignatureSourceDescription
structBridgeConfigpub struct BridgeConfigcrates/vox-python-bridge/src/lib.rs#L31-L36Worker spawn and protocol limits. worker_cmd selects the real interpreter or a test double; it is argv, never a shell string.
structHandleRefpub struct HandleRefcrates/vox-python-bridge/src/lib.rs#L51-L56One worker-resident object. A generation from a dead worker is stale.
structReplypub struct Replycrates/vox-python-bridge/src/lib.rs#L60-L63Successful reply. value is the JSON result payload; body is opaque.
enumBridgeErrorpub enum BridgeErrorcrates/vox-python-bridge/src/lib.rs#L66-L71—
fnprotocolpub fn protocol(msg: impl Into<String>) -> Selfcrates/vox-python-bridge/src/lib.rs#L74-L76—
fnworker_rootpub fn worker_root() -> std::path::PathBufcrates/vox-python-bridge/src/lib.rs#L80-L82Directory that contains the vox_bridge package. Put it on PYTHONPATH.