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.
Crate Overview
Section titled “Crate Overview”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/.
Workspace Dependencies
Section titled “Workspace Dependencies”| Dependency | Kind |
|---|---|
vox-foundation | Normal |
Public API Surface
Section titled “Public API Surface”Structs
Section titled “Structs”| Struct | Description |
|---|---|
BridgeConfig | Worker spawn and protocol limits. worker_cmd selects the real interpreter or a test double; it is argv, never a shell string. |
HandleRef | One worker-resident object. A generation from a dead worker is stale. |
Reply | Successful reply. value is the JSON result payload; body is opaque. |
| Enum | Description |
|---|---|
BridgeError | — |
Functions
Section titled “Functions”| Function | Description |
|---|---|
protocol | — |
worker_root | Directory that contains the vox_bridge package. Put it on PYTHONPATH. |
Dependency Topology
Section titled “Dependency Topology”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}Reverse Dependents (Used By)
Section titled “Reverse Dependents (Used By)”| Consumer Crate | Role |
|---|---|
vox-compiler | Direct workspace dependent |
Deep Public Symbols (Source-Anchored)
Section titled “Deep Public Symbols (Source-Anchored)”| Kind | Symbol | Signature | Source | Description |
|---|---|---|---|---|
struct | BridgeConfig | pub struct BridgeConfig | crates/vox-python-bridge/src/lib.rs#L31-L36 | Worker spawn and protocol limits. worker_cmd selects the real interpreter or a test double; it is argv, never a shell string. |
struct | HandleRef | pub struct HandleRef | crates/vox-python-bridge/src/lib.rs#L51-L56 | One worker-resident object. A generation from a dead worker is stale. |
struct | Reply | pub struct Reply | crates/vox-python-bridge/src/lib.rs#L60-L63 | Successful reply. value is the JSON result payload; body is opaque. |
enum | BridgeError | pub enum BridgeError | crates/vox-python-bridge/src/lib.rs#L66-L71 | — |
fn | protocol | pub fn protocol(msg: impl Into<String>) -> Self | crates/vox-python-bridge/src/lib.rs#L74-L76 | — |
fn | worker_root | pub fn worker_root() -> std::path::PathBuf | crates/vox-python-bridge/src/lib.rs#L80-L82 | Directory that contains the vox_bridge package. Put it on PYTHONPATH. |