Skip to content

Class tigrbl.runtime.context.MappingProxy

tigrbl.runtime.context.MappingProxy

MappingProxy(data)

Bases: Mapping[str, Any]

A lightweight, read-only mapping wrapper.

Source code in tigrbl/runtime/context.py
187
188
def __init__(self, data: Mapping[str, Any]):
    self._d = dict(data)

get

get(key, default=None)
Source code in tigrbl/runtime/context.py
199
200
def get(self, key: str, default: Any = None) -> Any:
    return self._d.get(key, default)