-
Notifications
You must be signed in to change notification settings - Fork 104
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
Fix missing kwargs injection on upload blob call #392
Fix missing kwargs injection on upload blob call #392
Conversation
xref fsspec/filesystem_spec#916. But agreed that forwarding arguments makes sense, even if that were to be standardized. We should document this somewhere though. Maybe a short note in |
@TomAugspurger that makes sense to standardised but in the meantime can we merge this PR so it can unblock my current use case? Regarding the note, not sure what you are suggesting. I've added this below the usage section in the index.md:
Was it something like this that you wanted? |
0c7402a
to
6135279
Compare
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.
that makes sense to standardised but in the meantime can we merge this PR so it can unblock my current use case?
Yep. I think we'll want this PR regardless of what happens upstream, to support other keyword arguments.
It seems that there's a linting check failing. I can't actually view the Azure Pipelines output (cc @hayesgb). Maybe you can try running the linters locally to see what's failing? This looks good otherwise.
c5e5e22
to
b50be78
Compare
b50be78
to
e0c1c0e
Compare
e0c1c0e
to
aa7054e
Compare
@@ -1,6 +1,6 @@ | |||
repos: | |||
- repo: https://github.com/pycqa/isort | |||
rev: 5.10.1 | |||
rev: 5.12.0 |
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.
Hello @TomAugspurger. It seems that the tests were failing due to the Can we merge it now, please? Thank you. |
Thanks! |
@TomAugspurger, wasn't a new version built with this fix? If not, can you build one please? Anything I didn't do that was suppose to do? Let me know if I can help. Thank you. |
Just a friendly notification: I would be super grateful if someone could build a new version with this fix. |
Hello there.
Currently, when uploading a blob, there's no way of injecting other arguments besides the
data
,overwrite
, andmetadata
.An example would be when I want to compress data and set the content encoding of the data to
br
. For that I need to pass aContentSettings
object into theupload_blob
method kwargs:i.e:
What I'm expecting to see in the azure storage containers web interface, when consulting the blob properties:
What I see instead (no content encoding defined):
script requirements:
$ pip install fsspec adlfs brotli