Python API display
A small reference specimen showing Python types, aliases, and callable APIs.
Generated by Python Autodoc. Types link to local definitions; signatures retain annotations and defaults without importing this module.
Vector3
Vector3(x: float, y: float, z: float = 0.0)Scene
Scene(name: str, *, origin: Vector3 | None = None)A named scene with typed spatial coordinates.
Parameters
| Parameter | Type / default | Description |
|---|---|---|
name | strrequired | Display name for the scene. |
origin | Vector3 | None= None | Initial position, or None for the default origin. |
Attributes
| Name | Type / value | Description |
|---|---|---|
visible | bool = True | Whether the scene is visible. |
Scene.__init__
Scene.__init__(name: str, *, origin: Vector3 | None = None)Parameters
| Parameter | Type / default | Description |
|---|---|---|
name | strrequired | — |
origin | Vector3 | None= None | Keyword-only parameter. |
Scene.origin
Scene.origin: Vector3Scene.move
Scene.move(position: Vector3, /, *, relative: bool = False) → Vector3Scene.subscribe
async Scene.subscribe(handler: EventHandler, *, timeout: float = 30.0) → NoneReceive position updates asynchronously.
Parameters
| Parameter | Type / default | Description |
|---|---|---|
handler | EventHandlerrequired | Callback invoked for each update. |
timeout | float= 30.0 | Maximum wait in seconds. |
Returns
None
Raises
TimeoutError— No update arrived before the timeout.
EventHandler
EventHandler = Callable[[Vector3], None]A callback receiving a position update.