Python | shutil.get_archive_formats() method Last Updated : 29 May, 2019 Summarize Comments Improve Suggest changes Share Like Article Like Report Shutil module in Python provides many functions of high-level operations on files and collections of files. It comes under Python’s standard utility modules. This module helps in automating process of copying and removal of files and directories. shutil.get_archive_formats() method in Python is used to get the list of supported formats for archiving. Following formats are available by default for archiving: zip: ZIP file tar: uncompressed tar file. gztar: gzip’ed tar-file bztar: bzip2’ed tar-file xztar: xz’ed tar-file Syntax: shutil.get_archive_formats() Parameter: No parameter is required Return Type: This method returns a list which represents the formats supported for archiving. Each element of the list is a tuple (name, description). Code: Use of shutil.get_archive_formats() method Python3 # Python program to explain shutil.get_archive_formats() method # importing shutil module import shutil # Get the list of # supported archiving formats formats = shutil.get_archive_formats() # Print the list of # supported archiving formats print("Supported archiving formats:\n", formats) Output: Supported archiving formats: [('bztar', "bzip2'ed tar-file"), ('gztar', "gzip'ed tar-file"), ('tar', 'uncompressed tar file'), ('xztar', "xz'ed tar-file"), ('zip', 'ZIP file')] Reference: https://docs.python.org/3/library/shutil.html Comment More infoAdvertise with us Next Article Python | shutil.copymode() method I ihritik Follow Improve Article Tags : Python python-utility Practice Tags : python Similar Reads Python | shutil.get_unpack_formats() method Shutil module in Python provides many functions of high-level operations on files and collections of files. It comes under Pythonâs standard utility modules. This module helps in automating process of copying and removal of files and directories. shutil.get_unpack_formats() method in Python is used 2 min read Python | shutil.unregister_archive_format() method Shutil module in Python provides many functions of high-level operations on files and collections of files. It comes under Pythonâs standard utility modules. This module helps in automating the process of copying and removal of files and directories. shutil.unregister_archive_format() method in Pyth 2 min read Python | shutil.unpack_archive() method Shutil module in Python provides many functions of high-level operations on files and collections of files. It comes under Pythonâs standard utility modules. This module helps in automating process of copying and removal of files and directories.shutil.unpack_archive() method in Python is used to un 2 min read Python | shutil.copystat() method Shutil module in Python provides many functions of high-level operations on files and collections of files. It comes under Pythonâs standard utility modules. This module helps in automating process of copying and removal of files and directories.shutil.copystat() method in Python is used to copy the 3 min read Python | shutil.copymode() method Shutil module in Python provides many functions of high-level operations on files and collections of files. It comes under Pythonâs standard utility modules. This module helps in automating the process of copying and removal of files and directories.shutil.copymode() method in Python is used to copy 2 min read shutil.copytree() method - Python shutil.copytree() method in Python is used to recursively copy an entire directory tree from a source to a destination. It copies all the contents, including files and subdirectories, preserving the directory structure.Syntaxshutil.copytree(src, dst, symlinks=False, ignore=None, copy_function=copy2, 3 min read Like