Start adding S3 support for VRTStack
#245
Merged
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.
Basic support for reading from S3 added, with a focus on the
VRTStack
. Allows us to doThe
PathOrStr
type has been updated to include theGeneralPath
protocol which describes the interface for our minimalS3Path
.Note that I considered adding some optional dependency like https://github.com/fsspec/universal_pathlib or https://github.com/liormizr/s3path or ... (there seem to be dozens of attempts). I thought we'd hold off until there's a strong need to to more file maniuplations beyond
s3path.exists()
.TODO: enable or tune some of these options if we see slow performance for block iteration https://developmentseed.org/titiler/advanced/performance_tuning/