Skip to content

Default to a RemoteStore for (some) string StoreLike #2195

Closed
@TomAugspurger

Description

@TomAugspurger

Zarr version

v3

Numcodecs version

n/a

Python Version

n/a

Operating System

n/a

Installation

n/a

Description

Zarr v2 users (either direct, or indirect through libraries like xarray) probably relied on the ability to pass an fsspec URI to zarr.open and have it work with a remote file system. Is there any tolerance for trying to interpret some string store arguments as an argument to RemoteStore rather than LocalFile? For example:

zarr.open_group("s3://hrrrzarr")

would be interpreted as

zarr.open_group(zarr.store.RemoteStore("s3://hrrrzarr"))

We'd also need to expose storage_options in all the API endpoints that create a Store / StorePath from user input, to allow customizing the filesystem that's created.

Steps to reproduce

import zarr

g = zarr.open_group(store="s3://hrrrzarr", storage_options={"anon": False})

Additional output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugPotential issues with the zarr-python library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions