-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEAT] Create obstore store in fsspec on demand #198
Open
machichima
wants to merge
45
commits into
developmentseed:main
Choose a base branch
from
machichima:obstore-instance-in-fsspec
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
909b5b0
feat: split bucket from path + construct store
machichima 29464a7
feat: remove store + add protocol + apply to all methods
machichima a0d9e1d
feat: inherit from AsyncFsspecStore to specify protocol
machichima 6614906
fix: correctly split protocol if exists in path
machichima 75c738e
feat: use urlparse to extract protocol
machichima 2209839
Merge branch 'main' into obstore-instance-in-fsspec
kylebarron 46c6b59
update typing
kylebarron 9ab35e1
fix: unbounded error
machichima cb80495
fix: remove redundant import
machichima b6a3d3a
feat: add register() to register AsyncFsspecStore for provided protocol
machichima 68cdff9
feat: add validation for protocol in register()
machichima fa5b539
test: for register()
machichima b704779
feat: add async parameter for register()
machichima 61deac4
test: test async store created by register()
machichima 4bc1599
feat: add http(s) into protocol_with_bucket list
machichima 4dc9143
feat: ls return path with bucket name
machichima fb607d0
feat: enable re-register same protocol
machichima b74948a
test: update pytest fixture to use register()
machichima f6ba27c
test: update test with new path format
machichima 30250cf
fix: mkdocs build error
machichima 4a8e6fc
Merge branch 'main' into obstore-instance-in-fsspec
machichima 27a0ac7
fix: error when merging
machichima d2d0235
build: add some ruff ignore
machichima 1f97703
fix: ruff error
machichima b002afb
build: add cachetools dependencies
machichima 9088104
Merge branch 'main' into obstore-instance-in-fsspec
machichima 897beb0
better scoping of lints
kylebarron 0726999
lint
kylebarron 5b87c46
fix: update lru_cache + clean class attribute
machichima 79a03f7
Merge branch 'main' into obstore-instance-in-fsspec
machichima dc4215d
fix some bugs when using get/put/cp/info/ls
machichima f59152b
Merge branch 'main' into obstore-instance-in-fsspec
machichima 4896ba3
fix: declare lru_cache in __init__
machichima c9378b8
fix: make AsyncFsspecStore cachable
machichima 549a4ac
test: for cache constructed store and filesystem obj
machichima a93fe2e
build: remove dependencies
machichima a54a3fe
fix: prevent send folder path to cat_file
machichima c804a18
fix: enable cp folders
machichima 6c2c513
lint
machichima c6392f2
fix: clobber=False to prevent re-register and cause memory leak
machichima 347e63e
test: clean up after each test to prevent memory leak
machichima 69bbed6
Merge branch 'main' into obstore-instance-in-fsspec
machichima 9e423f5
Simplify protocol registration
kylebarron 096845c
fix+test: register check types
machichima 5ea2ba8
small edits
kylebarron File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assuming that this function will always receive something a URL like
s3://mybucket/path/to/file
, I'm inclined for this function to useurlparse
instead of manually handling the parts of the URLThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will not always be
s3://mybucket/path/to/file
, but may be without protocol likemybucket/path/to/file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I use urlparse like this here, which works for both
s3://mybucket/path/to/file
andmybucket/path/to/file
obstore/obstore/python/obstore/fsspec.py
Lines 108 to 112 in 75c738e