-
Notifications
You must be signed in to change notification settings - Fork 64
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
GSPath: Implement sliced object downloads #387
Comments
Thanks @joconnor-ecaa. I think we'd take a PR that added a Our docstring should link to the method docs that have the full list of kwargs: |
Hi @pjbull and thanks for the advice! I've implemented this feature as suggested but am running into trouble with the local tests. Have opened a PR #389 in draft for visibility. Turns out that
I don't know too much about pickle so if anyone can help with the error that would be great. If not, options are either to run this test only on the live cloud servers (not sure when this is appropriate) or to put this PR on hold. |
@joconnor-ecaa can you put the whole stack trace so I can see how we end up getting there? |
Sure thing:
I managed to follow the thread a little. |
Thanks, that's helpful. We shouldn't be hitting the actual Instead, we need to add a patch for You can add a When the test suite is run against the live backends, the actual codepath here will get tested. |
Fixed in #389, thanks @joconnor-ecaa |
Thanks @joconnor-ecaa! This is now released in the latest version of cloudpathlib on PyPI (0.18.0). |
Sliced downloads are beneficial in cases of downloading a small number of large files. GCP documentation here with example code using the cloud storage python client:
https://cloud.google.com/storage/docs/sliced-object-downloads
Unsure if this is within scope of cloudpathlib but such a feature would be useful.
The text was updated successfully, but these errors were encountered: