Skip to content

Commit 5056f14

Browse files
committed
token anon for s3 examples
1 parent 9243fc7 commit 5056f14

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

docs/user-guide/storage.rst

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ to Zarr's top level API will result in the store being created automatically.
2626
zarr.open_group("data/foo/bar", mode="w")
2727
2828
# implicitly create a read-only FsspecStore
29-
zarr.open_group("s3://noaa-nwm-retro-v2-zarr-pds", mode="r")
29+
zarr.open_group(
30+
"s3://noaa-nwm-retro-v2-zarr-pds",
31+
mode="r",
32+
storage_options={"anon": True}
33+
)
3034
3135
# implicitly creates a MemoryStore
3236
data = {}
@@ -68,11 +72,16 @@ The :class:`zarr.storage.FsspecStore` stores the contents of a Zarr hierarchy in
6872
logical layout as the ``LocalStore``, except the store is assumed to be on a remote storage system
6973
such as cloud object storage (e.g. AWS S3, Google Cloud Storage, Azure Blob Store). The
7074
:class:`zarr.storage.FsspecStore` is backed by `Fsspec_` and can support any Fsspec backend
71-
that implements the `AbstractFileSystem` API,
75+
that implements the `AbstractFileSystem` API. ``storage_options`` can be used to configure
76+
the Fsspec backend.
7277

7378
.. ipython:: python
7479
75-
store = zarr.storage.FsspecStore.from_url("s3://noaa-nwm-retro-v2-zarr-pds", read_only=True)
80+
store = zarr.storage.FsspecStore.from_url(
81+
"s3://noaa-nwm-retro-v2-zarr-pds",
82+
read_only=True,
83+
storage_options={"anon": True}
84+
)
7685
zarr.open_group(store=store, mode='r')
7786
7887
Memory Store

0 commit comments

Comments
 (0)