bayesline.api.strip_meta_keys

bayesline.api.strip_meta_keys#

bayesline.api.strip_meta_keys(raw_json: Mapping[str, Any]) dict[str, Any]#

Return raw_json without storage-level meta keys.

Strips VERSION_KEY and DATASET_KEY — the keys the writer injects around persistence — so callers see only the inner setting’s fields, matching the JSON shape that crosses the HTTP boundary.

Parameters#

raw_jsonMapping[str, Any]

The stored JSON, possibly carrying meta keys.

Returns#

dict[str, Any]

A new dict with the meta keys removed.