title: How to create a file object from a zipfile?
body: <p>I want to create a file object from a file that is inside a zip. I don't wanna extract that file. Actually I wanna use seek method on a file that is inside a zip. My code:</p>
  <pre><code>from zipfile import ZipFile
  input_zip = ZipFile(&quot;xyz.zip&quot;)
  file_name = input_zip.namelist()[0]
  input_zip.read(name)
  </code></pre>
  <p>But I can't use seek method on it. I wanna make it like this but without extracting the file:</p>
  <pre><code>file = open(&quot;new.txt&quot;, 'rb')
  file.seek(14)
  </code></pre>