tensorstore.Spec.codec : CodecSpec | None

Effective codec, including any constraints implied by driver-specific options.

Example

>>> spec = ts.Spec({
...     'driver': 'zarr',
...     'kvstore': {
...         'driver': 'memory'
...     },
...     'metadata': {
...         'compressor': None,
...     }
... })
>>> spec.codec
CodecSpec({'compressor': None, 'driver': 'zarr'})

Note

This does not perform any I/O. Only directly-specified constraints are included.