-
-
Notifications
You must be signed in to change notification settings - Fork 381
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
Add support for prefetching to sftp transport #849
base: develop
Are you sure you want to change the base?
Conversation
Add optional `prefetch_kwargs` to ssh transport_params These may be used to trigger prefetching, which can drastically improve throughput if downloading an entire file over sftp
07c6720
to
afe7da9
Compare
@@ -245,7 +248,9 @@ def open(path, mode='r', host=None, user=None, password=None, port=None, transpo | |||
port: int, optional | |||
The port to connect to. | |||
transport_params: dict, optional | |||
Any additional settings to be passed to paramiko.SSHClient.connect | |||
Currently supported parameters: | |||
connect_kwags: Any additional settings to be passed to paramiko.SSHClient.connect |
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.
Typo here: connect_kwags
nit: can you move |
I've noticed this in several PRs, across several different authors. Not just here. Is this an issue with some PR template? Where does this "codeblock style" come from? |
yes i did think it was a bit odd but decided to follow the template. i see you're updating that too now 👍 will fix the description here |
is force-pushing ok for fixing these typos or do you still prefer new commits? |
connect_kwags: Any additional settings to be passed to paramiko.SSHClient.connect | ||
prefetch_kwargs: Any additional settings to be passed to paramiko.SFTPFile.prefetch. The presence of this dict (even if empty) triggers prefetching. |
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.
connect_kwags: Any additional settings to be passed to paramiko.SSHClient.connect | |
prefetch_kwargs: Any additional settings to be passed to paramiko.SFTPFile.prefetch. The presence of this dict (even if empty) triggers prefetching. | |
connect_kwargs: dict, optional | |
Any additional settings to be passed to paramiko.SSHClient.connect. | |
prefetch_kwargs: dict, optional | |
Any additional settings to be passed to paramiko.SFTPFile.prefetch. The presence of this dict (even if empty) triggers prefetching. |
Title
Add support for prefetching to sftp transport
Motivation
Add optional
prefetch_kwargs
to ssh transport_paramsThese may be used to trigger prefetching, which can drastically improve throughput if downloading an entire file over sftp
Checklist
Before you create the PR, please make sure you have: