-
Notifications
You must be signed in to change notification settings - Fork 415
Add remaining paramiko connect params to SFTP filesystem #2823
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 remaining paramiko connect params to SFTP filesystem #2823
Conversation
✅ Deploy Preview for dlt-hub-docs canceled.
|
a707278 to
57f327c
Compare
|
Maybe @sh-rp if you have a chance to review |
57f327c to
6ec0535
Compare
6ec0535 to
3601209
Compare
|
Sorry to keep bothering, but would really appreciate a review on this as it is blocking my current workflow. Maybe @rudolfix ? |
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.
Hey @AyushPatel101, sorry for the long wait, we were very busy! Thanks for your PR, I just have small change requests wrt typing, and please update the filesystem docs page with the new config parameters. And also rebase to the newest devel.
dlt/common/typing.py
Outdated
| DictStrAny: TypeAlias = Dict[str, Any] | ||
| DictStrStr: TypeAlias = Dict[str, str] | ||
| DictStrOptionalStr: TypeAlias = Dict[str, Optional[str]] | ||
| DictStrListStr: TypeAlias = Dict[str, List[str]] |
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.
We want to start getting rid of these kind of types, I think you can remove this and use Dict[str, List[str]] directly in the other places.
dlt/common/typing.py
Outdated
| else: | ||
| Transport = Any | ||
|
|
||
| SFTPTransportFactory: TypeAlias = Callable[[socket.socket], Transport] |
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.
There are types specific to the sftp_credentials, you should define them in the sftp_credentials class and not import anything from paramiko here.
96bb5d8 to
5faad74
Compare
5faad74 to
d40b4a2
Compare
|
@sh-rp requesting re-review whenever you get a chance |
sh-rp
left a comment
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.
One small change left :)
…rameters to paramiko.client.connect. Also update filesystem docs for SFTP creds
6ea65f5 to
f20d5b7
Compare
eb1bdc7 to
30252a0
Compare
|
Thanks :) |
Description
Docs - https://docs.paramiko.org/en/3.3/api/client.html#paramiko.client.SSHClient.connect
paramiko.client.SSHClient.connecthas the option to provide apkey,disabled_algorithms,transport_factory,auth_strategyparams and I would like to expose those parameters for use.Related Issues
auth_strategysupport for SFTP client #2822