Skip to content
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

client: implement callback protocols #44

Merged
merged 1 commit into from
Jul 15, 2021

Conversation

isidentical
Copy link
Collaborator

This implements support for the callbacks in the underlying client, so that when put_file() is used it will pass the callback within it's **kwargs and it will just work like normal. I wasn't sure about deprecation policy, so supporting for both of the callback options required a bit of typing magic (casts), hopefully it is OK.

Copy link
Owner

@skshetry skshetry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much for the PR, @isidentical. Callback looks great, I should be able to support tqdm progress bars in the CLI here. Comments are inlined.

@codecov-commenter
Copy link

codecov-commenter commented Jul 14, 2021

Codecov Report

Merging #44 (cb52396) into main (e9b57e9) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##              main       #44   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           28        28           
  Lines         3248      3271   +23     
  Branches       187       188    +1     
=========================================
+ Hits          3248      3271   +23     
Impacted Files Coverage Δ
src/webdav4/fsspec.py 100.00% <100.00%> (ø)
tests/test_fsspec.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e9b57e9...cb52396. Read the comment docs.

@isidentical isidentical force-pushed the fsspec-callbacks branch 2 times, most recently from 73147c9 to 8a54ee2 Compare July 15, 2021 07:22
@skshetry skshetry enabled auto-merge (squash) July 15, 2021 08:22
@skshetry skshetry disabled auto-merge July 15, 2021 12:39
@skshetry skshetry merged commit 2a8885c into skshetry:main Jul 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants