title: How to decompress a .xz file which has multiple folders/files inside, in a single go?
body: <p>I'm trying to uncompress a .xz file which has a few foders and files inside. I don't see a direct way to do this using lzma module. This is what I'm seeing for a decompress method :</p>
  
  <pre><code>In [1]: import lzma
  
  In [2]: f = lzma.decompress("test.tar.xz")
  ---------------------------------------------------------------------------
  error                                     Traceback (most recent call last)
  &lt;ipython-input-2-3b08bf488f9d&gt; in &lt;module&gt;()
  ----&gt; 1 f = lzma.decompress("test.tar.xz")
  
  error: unknown file format
  </code></pre>
  
  <p>Are there any other methods to un-compress this file so that it will create the resultant folder ?</p>