API Reference
Public API
PyTensorStore.ChunkLayoutWrapper — Type
ChunkLayoutWrapper(parent::Py)A wrapper around a Python tensorstore.ChunkLayout object. Describes how data is chunked on disk.
PyTensorStore.ContextSpecWrapper — Type
ContextSpecWrapper(parent::Py)A wrapper around a Python tensorstore.Context.Spec object. Represents the configuration for a Context.
PyTensorStore.ContextWrapper — Type
ContextWrapper(parent::Py)A wrapper around a Python tensorstore.Context object. Used for sharing resources (like cache pools) between multiple TensorStore handles.
PyTensorStore.FutureWrapper — Type
FutureWrapper{Result}(parent::Py)A wrapper around a Python tensorstore.Future object. Result is the Julia type that the future will resolve to when .result() is called.
PyTensorStore.IndexDomainWrapper — Type
IndexDomainWrapper(parent::Py)A wrapper around a Python tensorstore.IndexDomain object. Represents the coordinate system and labels of a TensorStore.
PyTensorStore.SchemaWrapper — Type
SchemaWrapper(parent::Py)A wrapper around a Python tensorstore.Schema object. Describes the data type, domain, and layout of a TensorStore.
PyTensorStore.SpecWrapper — Type
SpecWrapper(parent::Py)A wrapper around a Python tensorstore.Spec object. Represents a serializable specification of a TensorStore.
PyTensorStore.TensorStoreWrapper — Type
TensorStoreWrapper(parent::Py)A wrapper around a Python tensorstore.TensorStore object. Implements much of the Julia AbstractArray interface.
PyTensorStore.TransactionWrapper — Type
TransactionWrapper(parent::Py)A wrapper around a Python tensorstore.Transaction object. Used for atomic multi-write operations.
PyTensorStore.abort — Method
abort(txn::TransactionWrapper)Abort the transaction, discarding any changes.
PyTensorStore.commit_async — Method
commit_async(txn::TransactionWrapper) -> FutureWrapper{ReturnsNothing}Start committing the transaction asynchronously.
PyTensorStore.commit_sync — Method
commit_sync(txn::TransactionWrapper)Commit the transaction synchronously and wait for completion.
PyTensorStore.context — Method
context(spec::Dict) -> ContextWrapper
context() -> ContextWrapperCreate a TensorStore context for shared resources like cache pools.
PyTensorStore.label — Method
label(w::TensorStoreWrapper, labels...) -> TensorStoreWrapperAssign new labels to the dimensions of the TensorStore.
PyTensorStore.labels — Method
labels(w::IndexDomainWrapper) -> Vector{String}Return the labels of the dimensions in the index domain.
PyTensorStore.open — Method
open(spec; kwargs...) -> FutureWrapper{TensorStoreWrapper}Open a TensorStore from a configuration dictionary or Spec. Returns a FutureWrapper that resolves to a TensorStoreWrapper.
Common keyword arguments:
transaction: ATransactionWrapperto use for this open operation.context: AContextWrapperor dictionary for shared resources.create: Boolean, whether to create the store if it doesn't exist.open: Boolean, whether to open an existing store.delete_existing: Boolean, whether to delete an existing store.
PyTensorStore.result — Method
result(w::FutureWrapper{Result}) -> ResultWait for the future to complete and return the result, converted to the Julia type Result.
PyTensorStore.transaction — Method
transaction(f::Function)Run a function f(txn) within a transaction. The transaction is automatically committed if f returns normally, and aborted if an exception is thrown.
PyTensorStore.transaction — Method
transaction() -> TransactionWrapperCreate a new TensorStore transaction.
PyTensorStore.translate_by — Method
translate_by(w::TensorStoreWrapper, offsets...) -> TensorStoreWrapperShift the coordinate system of the TensorStore by the given relative offsets. Offsets are relative to the current coordinate system.
PyTensorStore.translate_to — Method
translate_to(w::TensorStoreWrapper, coords...) -> TensorStoreWrapperShift the coordinate system of the TensorStore so that its origin starts at the specified coordinates. Coordinates are 1-based Julia indices.