tensorstore.KvStore.Spec(json: Any)

Constructs from the JSON representation or a URL.

Example of constructing from the JSON representation:

>>> spec = ts.KvStore.Spec({'driver': 'file', 'path': 'tmp/data/'})
>>> spec
KvStore.Spec({'driver': 'file', 'path': 'tmp/data/'})

Example of constructing from a URL:

>>> spec = ts.KvStore.Spec('file://tmp/data/')
>>> spec
KvStore.Spec({'driver': 'file', 'path': 'tmp/data/'})