You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allows constructing a ZipStore from any seekable binary reader, enabling zip archives on remote storage:
io objects (BytesIO, fsspec file objects) are used directly
minimal readers that are not io.IOBase instances and whose read() may return buffer-protocol objects rather than bytes (e.g. obstore.ReadableFile) are adapted via a small io.RawIOBase wrapper when opened for reading
clear()/move() raise NotImplementedError for file-object-backed stores.
For reviewers
This is the first of a series of Pull Requests toward #2943.
Author attestation
I am a human, these are my changes, and I have reviewed and understood every change and can explain why each is correct.
TODO
Add unit tests and/or doctests in docstrings
Add docstrings and API docs for any new/modified user-facing classes and functions
New/modified features documented in docs/user-guide/*.md
Allows constructing a ZipStore from any seekable binary reader, enabling
zip archives on remote storage:
- io objects (BytesIO, fsspec file objects) are used directly
- minimal readers that are not io.IOBase instances and whose read() may
return buffer-protocol objects rather than bytes (e.g.
obstore.ReadableFile) are adapted via a small io.RawIOBase wrapper
when opened for reading
clear()/move() raise NotImplementedError for file-object-backed stores.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Allows constructing a
ZipStorefrom any seekable binary reader, enabling zip archives on remote storage:io.IOBaseinstances and whoseread()may return buffer-protocol objects rather than bytes (e.g.obstore.ReadableFile) are adapted via a smallio.RawIOBasewrapper when opened for readingclear()/move()raiseNotImplementedErrorfor file-object-backed stores.For reviewers
This is the first of a series of Pull Requests toward #2943.
Author attestation
TODO
docs/user-guide/*.mdchanges/