Upload a file with a file.write interface
<p>I've never seen this in Python and I'm interested if there is anything out there that will allow you to send files (for example HTTP PUT or POST) with a write interface? I've only ever seen a read interface where you pass a filename or <code>file</code> object (urllib, requests etc)</p>

<p>Of course I may have never seen this for good reason, which I'd also be interested to know.</p>
