~dkuhlman/python-training-materials/Materials

« back to all changes in this revision

Viewing changes to python-3.5.2-docs-html/library/archiving.html

  • Committer: Dave Kuhlman
  • Date: 2017-04-15 16:24:56 UTC
  • Revision ID: dkuhlman@davekuhlman.org-20170415162456-iav9vozzg4iwqwv3
Updated docs

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 
2
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
3
 
 
4
 
 
5
<html xmlns="http://www.w3.org/1999/xhtml">
 
6
  <head>
 
7
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 
8
    
 
9
    <title>13. Data Compression and Archiving &mdash; Python 3.5.2 documentation</title>
 
10
    
 
11
    <link rel="stylesheet" href="../_static/pydoctheme.css" type="text/css" />
 
12
    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
 
13
    
 
14
    <script type="text/javascript">
 
15
      var DOCUMENTATION_OPTIONS = {
 
16
        URL_ROOT:    '../',
 
17
        VERSION:     '3.5.2',
 
18
        COLLAPSE_INDEX: false,
 
19
        FILE_SUFFIX: '.html',
 
20
        HAS_SOURCE:  true
 
21
      };
 
22
    </script>
 
23
    <script type="text/javascript" src="../_static/jquery.js"></script>
 
24
    <script type="text/javascript" src="../_static/underscore.js"></script>
 
25
    <script type="text/javascript" src="../_static/doctools.js"></script>
 
26
    <script type="text/javascript" src="../_static/sidebar.js"></script>
 
27
    <link rel="search" type="application/opensearchdescription+xml"
 
28
          title="Search within Python 3.5.2 documentation"
 
29
          href="../_static/opensearch.xml"/>
 
30
    <link rel="author" title="About these documents" href="../about.html" />
 
31
    <link rel="copyright" title="Copyright" href="../copyright.html" />
 
32
    <link rel="top" title="Python 3.5.2 documentation" href="../contents.html" />
 
33
    <link rel="up" title="The Python Standard Library" href="index.html" />
 
34
    <link rel="next" title="13.1. zlib — Compression compatible with gzip" href="zlib.html" />
 
35
    <link rel="prev" title="12.6. sqlite3 — DB-API 2.0 interface for SQLite databases" href="sqlite3.html" />
 
36
    <link rel="shortcut icon" type="image/png" href="../_static/py.png" />
 
37
    
 
38
    <script type="text/javascript" src="../_static/copybutton.js"></script>
 
39
    <script type="text/javascript" src="../_static/version_switch.js"></script>
 
40
    
 
41
    
 
42
 
 
43
 
 
44
  </head>
 
45
  <body role="document">  
 
46
    <div class="related" role="navigation" aria-label="related navigation">
 
47
      <h3>Navigation</h3>
 
48
      <ul>
 
49
        <li class="right" style="margin-right: 10px">
 
50
          <a href="../genindex.html" title="General Index"
 
51
             accesskey="I">index</a></li>
 
52
        <li class="right" >
 
53
          <a href="../py-modindex.html" title="Python Module Index"
 
54
             >modules</a> |</li>
 
55
        <li class="right" >
 
56
          <a href="zlib.html" title="13.1. zlib — Compression compatible with gzip"
 
57
             accesskey="N">next</a> |</li>
 
58
        <li class="right" >
 
59
          <a href="sqlite3.html" title="12.6. sqlite3 — DB-API 2.0 interface for SQLite databases"
 
60
             accesskey="P">previous</a> |</li>
 
61
        <li><img src="../_static/py.png" alt=""
 
62
                 style="vertical-align: middle; margin-top: -1px"/></li>
 
63
        <li><a href="https://www.python.org/">Python</a> &raquo;</li>
 
64
        <li>
 
65
          <span class="version_switcher_placeholder">3.5.2</span>
 
66
          <a href="../index.html">Documentation </a> &raquo;
 
67
        </li>
 
68
 
 
69
          <li class="nav-item nav-item-1"><a href="index.html" accesskey="U">The Python Standard Library</a> &raquo;</li>
 
70
    <li class="right">
 
71
        
 
72
 
 
73
    <div class="inline-search" style="display: none" role="search">
 
74
        <form class="inline-search" action="../search.html" method="get">
 
75
          <input placeholder="Quick search" type="text" name="q" />
 
76
          <input type="submit" value="Go" />
 
77
          <input type="hidden" name="check_keywords" value="yes" />
 
78
          <input type="hidden" name="area" value="default" />
 
79
        </form>
 
80
    </div>
 
81
    <script type="text/javascript">$('.inline-search').show(0);</script>
 
82
         |
 
83
    </li>
 
84
 
 
85
      </ul>
 
86
    </div>    
 
87
 
 
88
    <div class="document">
 
89
      <div class="documentwrapper">
 
90
        <div class="bodywrapper">
 
91
          <div class="body" role="main">
 
92
            
 
93
  <div class="section" id="data-compression-and-archiving">
 
94
<span id="archiving"></span><h1>13. Data Compression and Archiving<a class="headerlink" href="#data-compression-and-archiving" title="Permalink to this headline">¶</a></h1>
 
95
<p>The modules described in this chapter support data compression with the zlib,
 
96
gzip, bzip2 and lzma algorithms, and the creation of ZIP- and tar-format
 
97
archives.  See also <a class="reference internal" href="shutil.html#archiving-operations"><span>Archiving operations</span></a> provided by the <a class="reference internal" href="shutil.html#module-shutil" title="shutil: High-level file operations, including copying."><code class="xref py py-mod docutils literal"><span class="pre">shutil</span></code></a>
 
98
module.</p>
 
99
<div class="toctree-wrapper compound">
 
100
<ul>
 
101
<li class="toctree-l1"><a class="reference internal" href="zlib.html">13.1. <code class="docutils literal"><span class="pre">zlib</span></code> &#8212; Compression compatible with <strong class="program">gzip</strong></a></li>
 
102
<li class="toctree-l1"><a class="reference internal" href="gzip.html">13.2. <code class="docutils literal"><span class="pre">gzip</span></code> &#8212; Support for <strong class="program">gzip</strong> files</a><ul>
 
103
<li class="toctree-l2"><a class="reference internal" href="gzip.html#examples-of-usage">13.2.1. Examples of usage</a></li>
 
104
</ul>
 
105
</li>
 
106
<li class="toctree-l1"><a class="reference internal" href="bz2.html">13.3. <code class="docutils literal"><span class="pre">bz2</span></code> &#8212; Support for <strong class="program">bzip2</strong> compression</a><ul>
 
107
<li class="toctree-l2"><a class="reference internal" href="bz2.html#de-compression-of-files">13.3.1. (De)compression of files</a></li>
 
108
<li class="toctree-l2"><a class="reference internal" href="bz2.html#incremental-de-compression">13.3.2. Incremental (de)compression</a></li>
 
109
<li class="toctree-l2"><a class="reference internal" href="bz2.html#one-shot-de-compression">13.3.3. One-shot (de)compression</a></li>
 
110
</ul>
 
111
</li>
 
112
<li class="toctree-l1"><a class="reference internal" href="lzma.html">13.4. <code class="docutils literal"><span class="pre">lzma</span></code> &#8212; Compression using the LZMA algorithm</a><ul>
 
113
<li class="toctree-l2"><a class="reference internal" href="lzma.html#reading-and-writing-compressed-files">13.4.1. Reading and writing compressed files</a></li>
 
114
<li class="toctree-l2"><a class="reference internal" href="lzma.html#compressing-and-decompressing-data-in-memory">13.4.2. Compressing and decompressing data in memory</a></li>
 
115
<li class="toctree-l2"><a class="reference internal" href="lzma.html#miscellaneous">13.4.3. Miscellaneous</a></li>
 
116
<li class="toctree-l2"><a class="reference internal" href="lzma.html#specifying-custom-filter-chains">13.4.4. Specifying custom filter chains</a></li>
 
117
<li class="toctree-l2"><a class="reference internal" href="lzma.html#examples">13.4.5. Examples</a></li>
 
118
</ul>
 
119
</li>
 
120
<li class="toctree-l1"><a class="reference internal" href="zipfile.html">13.5. <code class="docutils literal"><span class="pre">zipfile</span></code> &#8212; Work with ZIP archives</a><ul>
 
121
<li class="toctree-l2"><a class="reference internal" href="zipfile.html#zipfile-objects">13.5.1. ZipFile Objects</a></li>
 
122
<li class="toctree-l2"><a class="reference internal" href="zipfile.html#pyzipfile-objects">13.5.2. PyZipFile Objects</a></li>
 
123
<li class="toctree-l2"><a class="reference internal" href="zipfile.html#zipinfo-objects">13.5.3. ZipInfo Objects</a></li>
 
124
<li class="toctree-l2"><a class="reference internal" href="zipfile.html#command-line-interface">13.5.4. Command-Line Interface</a><ul>
 
125
<li class="toctree-l3"><a class="reference internal" href="zipfile.html#command-line-options">13.5.4.1. Command-line options</a></li>
 
126
</ul>
 
127
</li>
 
128
</ul>
 
129
</li>
 
130
<li class="toctree-l1"><a class="reference internal" href="tarfile.html">13.6. <code class="docutils literal"><span class="pre">tarfile</span></code> &#8212; Read and write tar archive files</a><ul>
 
131
<li class="toctree-l2"><a class="reference internal" href="tarfile.html#tarfile-objects">13.6.1. TarFile Objects</a></li>
 
132
<li class="toctree-l2"><a class="reference internal" href="tarfile.html#tarinfo-objects">13.6.2. TarInfo Objects</a></li>
 
133
<li class="toctree-l2"><a class="reference internal" href="tarfile.html#command-line-interface">13.6.3. Command-Line Interface</a><ul>
 
134
<li class="toctree-l3"><a class="reference internal" href="tarfile.html#command-line-options">13.6.3.1. Command-line options</a></li>
 
135
</ul>
 
136
</li>
 
137
<li class="toctree-l2"><a class="reference internal" href="tarfile.html#examples">13.6.4. Examples</a></li>
 
138
<li class="toctree-l2"><a class="reference internal" href="tarfile.html#supported-tar-formats">13.6.5. Supported tar formats</a></li>
 
139
<li class="toctree-l2"><a class="reference internal" href="tarfile.html#unicode-issues">13.6.6. Unicode issues</a></li>
 
140
</ul>
 
141
</li>
 
142
</ul>
 
143
</div>
 
144
</div>
 
145
 
 
146
 
 
147
          </div>
 
148
        </div>
 
149
      </div>
 
150
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
 
151
        <div class="sphinxsidebarwrapper">
 
152
  <h4>Previous topic</h4>
 
153
  <p class="topless"><a href="sqlite3.html"
 
154
                        title="previous chapter">12.6. <code class="docutils literal"><span class="pre">sqlite3</span></code> &#8212; DB-API 2.0 interface for SQLite databases</a></p>
 
155
  <h4>Next topic</h4>
 
156
  <p class="topless"><a href="zlib.html"
 
157
                        title="next chapter">13.1. <code class="docutils literal"><span class="pre">zlib</span></code> &#8212; Compression compatible with <strong class="program">gzip</strong></a></p>
 
158
  <div role="note" aria-label="source link">
 
159
    <h3>This Page</h3>
 
160
    <ul class="this-page-menu">
 
161
      <li><a href="../bugs.html">Report a Bug</a></li>
 
162
      <li><a href="../_sources/library/archiving.txt"
 
163
            rel="nofollow">Show Source</a></li>
 
164
    </ul>
 
165
  </div>
 
166
        </div>
 
167
      </div>
 
168
      <div class="clearer"></div>
 
169
    </div>  
 
170
    <div class="related" role="navigation" aria-label="related navigation">
 
171
      <h3>Navigation</h3>
 
172
      <ul>
 
173
        <li class="right" style="margin-right: 10px">
 
174
          <a href="../genindex.html" title="General Index"
 
175
             >index</a></li>
 
176
        <li class="right" >
 
177
          <a href="../py-modindex.html" title="Python Module Index"
 
178
             >modules</a> |</li>
 
179
        <li class="right" >
 
180
          <a href="zlib.html" title="13.1. zlib — Compression compatible with gzip"
 
181
             >next</a> |</li>
 
182
        <li class="right" >
 
183
          <a href="sqlite3.html" title="12.6. sqlite3 — DB-API 2.0 interface for SQLite databases"
 
184
             >previous</a> |</li>
 
185
        <li><img src="../_static/py.png" alt=""
 
186
                 style="vertical-align: middle; margin-top: -1px"/></li>
 
187
        <li><a href="https://www.python.org/">Python</a> &raquo;</li>
 
188
        <li>
 
189
          <span class="version_switcher_placeholder">3.5.2</span>
 
190
          <a href="../index.html">Documentation </a> &raquo;
 
191
        </li>
 
192
 
 
193
          <li class="nav-item nav-item-1"><a href="index.html" >The Python Standard Library</a> &raquo;</li>
 
194
    <li class="right">
 
195
        
 
196
 
 
197
    <div class="inline-search" style="display: none" role="search">
 
198
        <form class="inline-search" action="../search.html" method="get">
 
199
          <input placeholder="Quick search" type="text" name="q" />
 
200
          <input type="submit" value="Go" />
 
201
          <input type="hidden" name="check_keywords" value="yes" />
 
202
          <input type="hidden" name="area" value="default" />
 
203
        </form>
 
204
    </div>
 
205
    <script type="text/javascript">$('.inline-search').show(0);</script>
 
206
         |
 
207
    </li>
 
208
 
 
209
      </ul>
 
210
    </div>  
 
211
    <div class="footer">
 
212
    &copy; <a href="../copyright.html">Copyright</a> 2001-2016, Python Software Foundation.
 
213
    <br />
 
214
    The Python Software Foundation is a non-profit corporation.
 
215
    <a href="https://www.python.org/psf/donations/">Please donate.</a>
 
216
    <br />
 
217
    Last updated on Nov 14, 2016.
 
218
    <a href="../bugs.html">Found a bug</a>?
 
219
    <br />
 
220
    Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
 
221
    </div>
 
222
 
 
223
  </body>
 
224
</html>
 
 
b'\\ No newline at end of file'