Make iter_archive work with ZIP files
{'login': 'lhoestq', 'id': 42851186, 'node_id': 'MDQ6VXNlcjQyODUxMTg2', 'avatar_url': 'https://avatars.githubusercontent.com/u/42851186?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/lhoestq', 'html_url': 'https://github.com/lhoestq', 'followers_url': 'https://api.github.com/users/lhoestq/followers', 'following_url': 'https://api.github.com/users/lhoestq/following{/other_user}', 'gists_url': 'https://api.github.com/users/lhoestq/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/lhoestq/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/lhoestq/subscriptions', 'organizations_url': 'https://api.github.com/users/lhoestq/orgs', 'repos_url': 'https://api.github.com/users/lhoestq/repos', 'events_url': 'https://api.github.com/users/lhoestq/events{/privacy}', 'received_events_url': 'https://api.github.com/users/lhoestq/received_events', 'type': 'User', 'site_admin': False}
[{'id': 1935892871, 'node_id': 'MDU6TGFiZWwxOTM1ODkyODcx', 'url': 'https://api.github.com/repos/huggingface/datasets/labels/enhancement', 'name': 'enhancement', 'color': 'a2eeef', 'default': True, 'description': 'New feature or request'}]
{'login': 'Mehdi2402', 'id': 56029953, 'node_id': 'MDQ6VXNlcjU2MDI5OTUz', 'avatar_url': 'https://avatars.githubusercontent.com/u/56029953?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/Mehdi2402', 'html_url': 'https://github.com/Mehdi2402', 'followers_url': 'https://api.github.com/users/Mehdi2402/followers', 'following_url': 'https://api.github.com/users/Mehdi2402/following{/other_user}', 'gists_url': 'https://api.github.com/users/Mehdi2402/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/Mehdi2402/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/Mehdi2402/subscriptions', 'organizations_url': 'https://api.github.com/users/Mehdi2402/orgs', 'repos_url': 'https://api.github.com/users/Mehdi2402/repos', 'events_url': 'https://api.github.com/users/Mehdi2402/events{/privacy}', 'received_events_url': 'https://api.github.com/users/Mehdi2402/received_events', 'type': 'User', 'site_admin': False}
[{'login': 'Mehdi2402', 'id': 56029953, 'node_id': 'MDQ6VXNlcjU2MDI5OTUz', 'avatar_url': 'https://avatars.githubusercontent.com/u/56029953?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/Mehdi2402', 'html_url': 'https://github.com/Mehdi2402', 'followers_url': 'https://api.github.com/users/Mehdi2402/followers', 'following_url': 'https://api.github.com/users/Mehdi2402/following{/other_user}', 'gists_url': 'https://api.github.com/users/Mehdi2402/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/Mehdi2402/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/Mehdi2402/subscriptions', 'organizations_url': 'https://api.github.com/users/Mehdi2402/orgs', 'repos_url': 'https://api.github.com/users/Mehdi2402/repos', 'events_url': 'https://api.github.com/users/Mehdi2402/events{/privacy}', 'received_events_url': 'https://api.github.com/users/Mehdi2402/received_events', 'type': 'User', 'site_admin': False}]
Hello, is this issue open for any contributor ? can I work on it ?

 Hi ! Sure this is open for any contributor. If you're interested feel free to self-assign this issue to you by commenting `#self-assign`. Then if you have any question or if I can help, feel free to ping me.

To begin with, feel free to take a look at both implementations of `iter_archive` for local downloads and for data streaming:

In the `DownloadManager` for local dowloads:
https://github.com/huggingface/datasets/blob/dfa334bd8dc6cbc854b170379c7d2cb7e3d3fe4f/src/datasets/utils/download_manager.py#L218-L242

In the `StreamingDownloadManager` to stream the content of the archive directly from the remote file:
https://github.com/huggingface/datasets/blob/dfa334bd8dc6cbc854b170379c7d2cb7e3d3fe4f/src/datasets/utils/streaming_download_manager.py#L502-L526

Notice the call to `xopen` that opens and streams a file given either an URL or a local path :) Okay thank you for the information. I will work on this :)  #self-assign
Currently users can use `dl_manager.iter_archive` in their dataset script to iterate over all the files of a TAR archive.
It would be nice if it could work with ZIP files too !
{'url': 'https://api.github.com/repos/huggingface/datasets/issues/3272/reactions', 'total_count': 1, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 1, 'rocket': 0, 'eyes': 0}