Lines Matching refs:tarfile
1 :mod:`tarfile` --- Read and write tar archive files
4 .. module:: tarfile
13 **Source code:** :source:`Lib/tarfile.py`
17 The :mod:`tarfile` module makes it possible to read and write tar
45 allowed, see :ref:`tarfile-objects`.
81 For modes ``'w:gz'``, ``'r:gz'``, ``'w:bz2'``, ``'r:bz2'``, :func:`tarfile.open`
86 ``'filemode|[compression]'``. :func:`tarfile.open` will return a :class:`TarFile`
124 better use :func:`tarfile.open` instead. See :ref:`tarfile-objects`.
129 Return :const:`True` if *name* is a tar archive file, that the :mod:`tarfile`
156 Base class for all :mod:`tarfile` exceptions.
162 :mod:`tarfile` module or is somehow invalid.
199 :mod:`tarfile` module is able to create. See section :ref:`tar-formats` for
318 Alternative constructor. The :func:`tarfile.open` function is actually a
519 .. method:: TarInfo.fromtarfile(tarfile)
521 Read the next member from the :class:`TarFile` object *tarfile* and return it as
654 import tarfile
655 tar = tarfile.open("sample.tar.gz")
663 import tarfile
670 tar = tarfile.open("sample.tar.gz")
676 import tarfile
677 tar = tarfile.open("sample.tar", "w")
684 import tarfile
685 with tarfile.open("sample.tar", "w") as tar:
691 import tarfile
692 tar = tarfile.open("sample.tar.gz", "r:gz")
706 import tarfile
711 tar = tarfile.open("sample.tar.gz", "w:gz")
721 There are three tar formats that can be created with the :mod:`tarfile` module:
730 standard on GNU/Linux systems. :mod:`tarfile` fully supports the GNU tar