File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,30 @@ The Store class
124124The Store API has changed significant in Zarr-Python 3. The most notable changes to the
125125Store API are:
126126
127+ Store Import Paths
128+ ^^^^^^^^^^^^^^^^^^
129+ Several store implementations have moved from the top-level module to ``zarr.storage ``:
130+
131+ .. code-block :: diff
132+ :caption: Store import changes from v2 to v3
133+
134+ # Before (v2)
135+ - from zarr import MemoryStore, DirectoryStore
136+ + from zarr.storage import MemoryStore, LocalStore # LocalStore replaces DirectoryStore
137+
138+ Common replacements:
139+
140+ +-------------------------+------------------------------------+
141+ | v2 Import | v3 Import |
142+ +=========================+====================================+
143+ | ``zarr.MemoryStore `` | ``zarr.storage.MemoryStore `` |
144+ +-------------------------+------------------------------------+
145+ | ``zarr.DirectoryStore `` | ``zarr.storage.LocalStore `` |
146+ +-------------------------+------------------------------------+
147+ | ``zarr.TempStore `` | Use ``tempfile.TemporaryDirectory``|
148+ | | with ``LocalStore `` |
149+ +-------------------------+------------------------------------+
150+
1271511. Replaced the ``MutableMapping `` base class in favor of a custom abstract base class
128152 (:class: `zarr.abc.store.Store `).
1291532. Switched to an asynchronous interface for all store methods that result in IO. This
You can’t perform that action at this time.
0 commit comments