22=======
33
44Zarr-Python supports multiple storage backends, including: local file systems,
5- Zip files, remote stores via ``fspec `` (S3, HTTP, etc.), and in-memory stores. In
5+ Zip files, remote stores via ``fsspec `` (S3, HTTP, etc.), and in-memory stores. In
66Zarr-Python 3, stores must implement the abstract store API from
77:class: `zarr.abc.store.Store `.
88
@@ -19,9 +19,9 @@ to Zarr's top level API will result in the store being created automatically.
1919.. code-block :: python
2020
2121 >> > import zarr
22- >> > zarr.open(" data/foo/bar" , mode = " r" ) # implicitly creates a LocalStore
22+ >> > zarr.open(" data/foo/bar" , mode = " r" ) # implicitly creates a read-only LocalStore
2323 < Group file :// data/ foo/ bar>
24- >> > zarr.open(" s3://foo/bar" , mode = " r" ) # implicitly creates a RemoteStore
24+ >> > zarr.open(" s3://foo/bar" , mode = " r" ) # implicitly creates a read-only RemoteStore
2525 < Group s3:// foo/ bar>
2626 >> > data = {}
2727 >> > zarr.open(data, mode = " w" ) # implicitly creates a MemoryStore
@@ -43,7 +43,7 @@ filesystem.
4343.. code-block :: python
4444
4545 >> > import zarr
46- >> > store = zarr.storage.LocalStore(" data/foo/bar" , mode = " r " )
46+ >> > store = zarr.storage.LocalStore(" data/foo/bar" , read_only = True )
4747 >> > zarr.open(store = store)
4848 < Group file :// data/ foo/ bar>
4949
@@ -72,7 +72,7 @@ that implements the `AbstractFileSystem` API,
7272.. code-block :: python
7373
7474 >> > import zarr
75- >> > store = zarr.storage.RemoteStore.from_url(" gs://foo/bar" , mode = " r " )
75+ >> > store = zarr.storage.RemoteStore.from_url(" gs://foo/bar" , read_only = True )
7676 >> > zarr.open(store = store)
7777 < Array < RemoteStore(GCSFileSystem, foo/ bar)> shape= (10 , 20 ) dtype= float32>
7878
@@ -86,7 +86,7 @@ Zarr data (metadata and chunks) to a dictionary.
8686
8787 >> > import zarr
8888 >> > data = {}
89- >> > store = zarr.storage.MemoryStore(data, mode = " w " )
89+ >> > store = zarr.storage.MemoryStore(data)
9090 >> > zarr.open(store = store, shape = (2 , ))
9191 < Array memory:// 4943638848 shape= (2 ,) dtype= float64>
9292
0 commit comments