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
base: master
from

Conversation

Projects
None yet
3 participants
@ericbuehl
Contributor

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

@klass-ivan

This comment has been minimized.

klass-ivan 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

This comment has been minimized.

Member

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

This comment has been minimized.

Member

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