tensorstore.ocdbt.undump_manifest(dumped_manifest: Any) bytes

Converts a JSON manifest dump to the on-disk manifest format.

Parameters:
dumped_manifest: Any

The JSON dump of the manifest in the format returned by dump.

Returns:

The on-disk representation of the manifest.

Examples:

>>> store = ts.KvStore.open({
...     "driver": "ocdbt",
...     "base": "memory://"
... }).result()
>>> store["a"] = b"b"
>>> manifest = ts.ocdbt.dump(store.base).result()
>>> encoded = ts.ocdbt.undump_manifest(manifest)
>>> assert encoded == store.base["manifest.ocdbt"]