|
407 | 407 | ] = """compression : str or dict, default 'infer'
|
408 | 408 | For on-the-fly compression of the output data. If 'infer' and '%s'
|
409 | 409 | path-like, then detect compression from the following extensions: '.gz',
|
410 |
| - '.bz2', '.zip', '.xz', or '.zst' (otherwise no compression). Set to |
| 410 | + '.bz2', '.zip', '.xz', '.zst', '.tar', '.tar.gz', '.tar.xz' or '.tar.bz2' (otherwise no compression). Set to |
411 | 411 | ``None`` for no compression. Can also be a dict with key ``'method'`` set
|
412 |
| - to one of {``'zip'``, ``'gzip'``, ``'bz2'``, ``'zstd'``} and other |
| 412 | + to one of {``'zip'``, ``'gzip'``, ``'bz2'``, ``'zstd'``, ``'tar'``} and other |
413 | 413 | key-value pairs are forwarded to ``zipfile.ZipFile``, ``gzip.GzipFile``,
|
414 |
| - ``bz2.BZ2File``, or ``zstandard.ZstdDecompressor``, respectively. As an |
| 414 | + ``bz2.BZ2File``, ``zstandard.ZstdDecompressor`` or ``tarfile.TarFile``, respectively. As an |
415 | 415 | example, the following could be passed for faster compression and to create
|
416 | 416 | a reproducible gzip archive:
|
417 | 417 | ``compression={'method': 'gzip', 'compresslevel': 1, 'mtime': 1}``."""
|
|
421 | 421 | ] = """compression : str or dict, default 'infer'
|
422 | 422 | For on-the-fly decompression of on-disk data. If 'infer' and '%s' is
|
423 | 423 | path-like, then detect compression from the following extensions: '.gz',
|
424 |
| - '.bz2', '.zip', '.xz', or '.zst' (otherwise no compression). If using |
425 |
| - 'zip', the ZIP file must contain only one data file to be read in. Set to |
| 424 | + '.bz2', '.zip', '.xz', '.zst', '.tar', '.tar.gz', '.tar.xz' or '.tar.bz2' (otherwise no compression). If using |
| 425 | + 'zip' or 'tar', the ZIP file must contain only one data file to be read in. Set to |
426 | 426 | ``None`` for no decompression. Can also be a dict with key ``'method'`` set
|
427 |
| - to one of {``'zip'``, ``'gzip'``, ``'bz2'``, ``'zstd'``} and other |
| 427 | + to one of {``'zip'``, ``'gzip'``, ``'bz2'``, ``'zstd'``, ``'tar'``} and other |
428 | 428 | key-value pairs are forwarded to ``zipfile.ZipFile``, ``gzip.GzipFile``,
|
429 |
| - ``bz2.BZ2File``, or ``zstandard.ZstdDecompressor``, respectively. As an |
| 429 | + ``bz2.BZ2File``, ``zstandard.ZstdDecompressor`` or ``tarfile.TarFile``, respectively. As an |
430 | 430 | example, the following could be passed for Zstandard decompression using a
|
431 | 431 | custom compression dictionary:
|
432 | 432 | ``compression={'method': 'zstd', 'dict_data': my_compression_dict}``."""
|
|
0 commit comments