On this page
  1. shutil.get_archive_formats
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

shutil.get_archive_formats

Prev: shutil.Error | Up: shutil | Next: shutil.get_terminal_size
Rel: shutil.chown, shutil.copy, shutil.copy2, shutil.copyfile
Ref: docs.python.org — shutil.get_archive_formats
Tags: #public #python3 #stdlib #shutil


Import

import shutil
from shutil import get_archive_formats

Signature & Overview

shutil.get_archive_formats()

Returns a list of supported formats for archiving and unarchiving.

Usage

import shutil

formats = dict(shutil.get_archive_formats())
assert "zip" in formats and "gztar" in formats

Gotchas

REPL Inspect

from shutil import get_archive_formats
help(get_archive_formats)

Linked from

Related notes