title: python requests return file-like object for streaming
body: <p>I have created a requests object like this:</p>
  
  <pre><code> obj.mp3 = requests.get('http://foo.com/bar.mp3', stream=True)
  </code></pre>
  
  <p>I thought that I could just feed this <code>obj.mp3</code> object into any audio player that expects a file or an URI, obviously this idea is wrong: nothing played. Below are the full code:</p>
  
  <pre><code>#views.py
  
  class ArticleDetailView(DetailView):
      model = Article
      template_name = 'song.html'
  
      def get_object(self):
          obj = super(ArticleDetailView, self).get_object()
  
          #code to store mp3 url in obj.mp3 and other stuff
  
          if obj.mp3:
              obj.mp3 = requests.get(obj.mp3, stream=True).content
          return obj
  
  #song.html
  &lt;div class="audio"&gt;
    &lt;audio src={{ article.mp3 }} type="audio/mpeg"&gt; 
  &lt;/div&gt;
  </code></pre>
  
  <p>What is the correct way of treating return from <code>requests</code> as something that I can stream with a player? I know at least I can write the <code>obj.mp3</code> to a file, then just point the player to the file location, but I am trying to avoid write the file to disk.</p>
  
  <p>Thanks,</p>