DreamLake

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

named tuplereference_demo.Vector3Source ↗
Vector3(x: float, y: float, z: float = 0.0)

Bases: NamedTuple

A position in three-dimensional space.

ParameterType / defaultDescription
xfloat
required
yfloat
required
zfloat
= 0.0
NameType / valueDescription
xfloatHorizontal coordinate, in meters.
yfloatVertical coordinate, in meters.
zfloat = 0.0Depth coordinate, in meters.

Scene

classreference_demo.SceneSource ↗
Scene(name: str, *, origin: Vector3 | None = None)

A named scene with typed spatial coordinates.

ParameterType / defaultDescription
namestr
required
Display name for the scene.
originVector3 | None
= None
Initial position, or None for the default origin.
NameType / valueDescription
visiblebool = TrueWhether the scene is visible.

Scene.__init__

methodreference_demo.Scene.__init__Source ↗
Scene.__init__(name: str, *, origin: Vector3 | None = None)
ParameterType / defaultDescription
namestr
required
originVector3 | None
= None
Keyword-only parameter.

Scene.origin

propertyreference_demo.Scene.originSource ↗
Scene.origin: Vector3

The current position of the scene.

Vector3

Scene.move

methodreference_demo.Scene.moveSource ↗
Scene.move(position: Vector3, /, *, relative: bool = False) → Vector3

Move the scene and return its new origin.

ParameterType / defaultDescription
positionVector3
positional-only
Target position in meters.
relativebool
= False
Interpret the position relative to the current origin.

Vector3 — The resulting scene origin.

Scene.subscribe

async methodreference_demo.Scene.subscribeSource ↗
async Scene.subscribe(handler: EventHandler, *, timeout: float = 30.0) → None

Receive position updates asynchronously.

ParameterType / defaultDescription
handlerEventHandler
required
Callback invoked for each update.
timeoutfloat
= 30.0
Maximum wait in seconds.

None

  • TimeoutError — No update arrived before the timeout.

EventHandler

type aliasreference_demo.EventHandlerSource ↗
EventHandler = Callable[[Vector3], None]

A callback receiving a position update.