I want to get the content of a remote file with fabric, without creating a temporary file.
from StringIO import StringIO from fabric.api import get fd = StringIO() get(remote_path, fd) content=fd.getvalue()