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

Allow uploading from an open file object #71

Closed
wants to merge 1 commit into from

Conversation

@ericbuehl
Copy link
Contributor

@ericbuehl ericbuehl commented Jun 4, 2012

Adds support for passing an open file (or file-like) object to sftp_client with putfo and getfo. Useful for hooking to other file-based python modules to avoid touching local disk. Patch passes all unit tests.

This is a copy of the patch submitted at https://bugs.launchpad.net/paramiko/+bug/746157

@ivan-klass
Copy link

@ivan-klass ivan-klass commented Oct 29, 2012

It will be awesome feature. Please review this patch. Now I have to call system
' heavy_output_script | ssh host cat > "remote_file" '

@bitprophet
Copy link
Member

@bitprophet bitprophet commented Nov 29, 2012

Love the idea, haven't reviewed the patch yet, will soon. Added link to this in Fabric #787 which will be a good way to test it out.

bitprophet added a commit that referenced this pull request Nov 30, 2012
@bitprophet
Copy link
Member

@bitprophet bitprophet commented Nov 30, 2012

Reviewed, merged, thanks!

@bitprophet bitprophet closed this Nov 30, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants