oc_chat
Loading...
Searching...
No Matches
lane_overlay.py File Reference

Go to the source code of this file.

Classes

class  oc_chat.core.lane_overlay.OverlayError
class  oc_chat.core.lane_overlay.OverlayRow

Namespaces

namespace  oc_chat
namespace  oc_chat.core
namespace  oc_chat.core.lane_overlay

Functions

 oc_chat.core.lane_overlay._catalogue ()
None oc_chat.core.lane_overlay._require (bool condition, str row, str message)
 oc_chat.core.lane_overlay._model_caps ()
tuple[str,...] oc_chat.core.lane_overlay._str_list (Any value, str row, str field)
OverlayRow oc_chat.core.lane_overlay.row_from_json (Mapping[str, Any] data)
dict[str, Any] oc_chat.core.lane_overlay.row_to_json (OverlayRow row)
dict[str, Any] oc_chat.core.lane_overlay.overlay_rows_to_json (Iterable[OverlayRow] rows)
tuple[OverlayRow,...] oc_chat.core.lane_overlay.load_overlay (str|Path path=DEFAULT_OVERLAY_PATH)
Path oc_chat.core.lane_overlay.write_overlay_row (OverlayRow row, *, str|Path path=DEFAULT_OVERLAY_PATH)
tuple["Lane",...] oc_chat.core.lane_overlay.merge_lanes (Sequence["Lane"] shipped, Sequence[OverlayRow] rows)
tuple[str,...] oc_chat.core.lane_overlay.register_overlay_lanes (str|Path path=DEFAULT_OVERLAY_PATH)

Variables

Path oc_chat.core.lane_overlay.DEFAULT_OVERLAY_PATH
int oc_chat.core.lane_overlay.OVERLAY_VERSION = 1
tuple oc_chat.core.lane_overlay.CAPABILITY_TIERS = ("frontier", "strong", "fast")
 oc_chat.core.lane_overlay._REQUIRED_FIELDS
 oc_chat.core.lane_overlay._OPTIONAL_FIELDS
 oc_chat.core.lane_overlay.KNOWN_FIELDS = _REQUIRED_FIELDS | _OPTIONAL_FIELDS