<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/datasets/blob/v4.9.10/tensorflow_datasets/core/download/extractor.py#L256-L273) |

Iterate over an archive.

    tfds.download.iter_archive(
        path: Union[epath.PathLike, typing.BinaryIO],
        method: https://www.tensorflow.org/datasets/api_docs/python/tfds/download/ExtractMethod
    ) -> Iterator[Tuple[str, typing.BinaryIO]]

<br />

<br />

<br />

| ## Args ||
|---|---|
| `path` | `str`, archive path |
| `method` | [`tfds.download.ExtractMethod`](https://www.tensorflow.org/datasets/api_docs/python/tfds/download/ExtractMethod), extraction method |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| An iterator of `(path_in_archive, f_obj)` ||

<br />