class tensorstore.Context

Manages shared TensorStore context resources, such as caches and credentials.

Constructors

Context()

Constructs a default context.

Context(spec: Context.Spec, parent: Context | None = None)

Constructs a context from a parsed spec.

Context(json: Any, parent: Context | None = None)

Constructs a context from its JSON representation.

Classes

class Spec

Parsed representation of a JSON Context specification.

class Resource

Handle to a context resource.

Accessors

parent : Context

Parent context from which this context inherits.

spec : Context.Spec

Spec from which this context was constructed.

__getitem__(key: str) Context.Resource

Creates or retrieves the context resource for the given key.