title: Extract zip to memory, parse contents
body: <p>I want to read the contents of a zip file into memory rather than extracting them to disc, find a particular file in the archive, open the file and extract a line from it.</p>
  
  <p>Can a StringIO instance be opened and parsed? Suggestions? Thanks in advance.</p>
  
  <pre><code>zfile = ZipFile('name.zip', 'r')
  
      for name in zfile.namelist():
          if fnmatch.fnmatch(name, '*_readme.xml'):
              name = StringIO.StringIO()
              print name # prints StringIO instances
              open(name, 'r')  # IO Error: No such file or directory...
  </code></pre>
  
  <p>I found a few similar posts, but none that seem to address this issue: <a href="https://stackoverflow.com/questions/10908877/extracting-a-zipfile-to-memory">Extracting a zipfile to memory?</a> </p>