hfutils 0.2.5__tar.gz → 0.2.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. {hfutils-0.2.5/hfutils.egg-info → hfutils-0.2.7}/PKG-INFO +24 -23
  2. hfutils-0.2.7/hfutils/__main__.py +4 -0
  3. {hfutils-0.2.5 → hfutils-0.2.7}/hfutils/config/meta.py +1 -1
  4. {hfutils-0.2.5 → hfutils-0.2.7}/hfutils/entry/cli.py +2 -0
  5. hfutils-0.2.7/hfutils/entry/ls_repo.py +74 -0
  6. {hfutils-0.2.5 → hfutils-0.2.7}/hfutils/operate/download.py +0 -2
  7. hfutils-0.2.7/hfutils/utils/irregular_repo.json +247 -0
  8. {hfutils-0.2.5 → hfutils-0.2.7/hfutils.egg-info}/PKG-INFO +24 -23
  9. {hfutils-0.2.5 → hfutils-0.2.7}/hfutils.egg-info/SOURCES.txt +2 -0
  10. {hfutils-0.2.5 → hfutils-0.2.7}/hfutils.egg-info/requires.txt +2 -1
  11. hfutils-0.2.7/requirements-build.txt +2 -0
  12. {hfutils-0.2.5 → hfutils-0.2.7}/requirements.txt +1 -1
  13. hfutils-0.2.5/hfutils/utils/irregular_repo.json +0 -662
  14. hfutils-0.2.5/requirements-build.txt +0 -1
  15. {hfutils-0.2.5 → hfutils-0.2.7}/LICENSE +0 -0
  16. {hfutils-0.2.5 → hfutils-0.2.7}/MANIFEST.in +0 -0
  17. {hfutils-0.2.5 → hfutils-0.2.7}/README.md +0 -0
  18. {hfutils-0.2.5 → hfutils-0.2.7}/hfutils/__init__.py +0 -0
  19. {hfutils-0.2.5 → hfutils-0.2.7}/hfutils/archive/__init__.py +0 -0
  20. {hfutils-0.2.5 → hfutils-0.2.7}/hfutils/archive/base.py +0 -0
  21. {hfutils-0.2.5 → hfutils-0.2.7}/hfutils/archive/rar.py +0 -0
  22. {hfutils-0.2.5 → hfutils-0.2.7}/hfutils/archive/sevenz.py +0 -0
  23. {hfutils-0.2.5 → hfutils-0.2.7}/hfutils/archive/tar.py +0 -0
  24. {hfutils-0.2.5 → hfutils-0.2.7}/hfutils/archive/zip.py +0 -0
  25. {hfutils-0.2.5 → hfutils-0.2.7}/hfutils/config/__init__.py +0 -0
  26. {hfutils-0.2.5 → hfutils-0.2.7}/hfutils/entry/__init__.py +0 -0
  27. {hfutils-0.2.5 → hfutils-0.2.7}/hfutils/entry/base.py +0 -0
  28. {hfutils-0.2.5 → hfutils-0.2.7}/hfutils/entry/dispatch.py +0 -0
  29. {hfutils-0.2.5 → hfutils-0.2.7}/hfutils/entry/download.py +0 -0
  30. {hfutils-0.2.5 → hfutils-0.2.7}/hfutils/entry/ls.py +0 -0
  31. {hfutils-0.2.5 → hfutils-0.2.7}/hfutils/entry/upload.py +0 -0
  32. {hfutils-0.2.5 → hfutils-0.2.7}/hfutils/entry/whoami.py +0 -0
  33. {hfutils-0.2.5 → hfutils-0.2.7}/hfutils/index/__init__.py +0 -0
  34. {hfutils-0.2.5 → hfutils-0.2.7}/hfutils/index/fetch.py +0 -0
  35. {hfutils-0.2.5 → hfutils-0.2.7}/hfutils/index/hash.py +0 -0
  36. {hfutils-0.2.5 → hfutils-0.2.7}/hfutils/index/make.py +0 -0
  37. {hfutils-0.2.5 → hfutils-0.2.7}/hfutils/index/validate.py +0 -0
  38. {hfutils-0.2.5 → hfutils-0.2.7}/hfutils/operate/__init__.py +0 -0
  39. {hfutils-0.2.5 → hfutils-0.2.7}/hfutils/operate/base.py +0 -0
  40. {hfutils-0.2.5 → hfutils-0.2.7}/hfutils/operate/upload.py +0 -0
  41. {hfutils-0.2.5 → hfutils-0.2.7}/hfutils/operate/validate.py +0 -0
  42. {hfutils-0.2.5 → hfutils-0.2.7}/hfutils/utils/__init__.py +0 -0
  43. {hfutils-0.2.5 → hfutils-0.2.7}/hfutils/utils/binary.py +0 -0
  44. {hfutils-0.2.5 → hfutils-0.2.7}/hfutils/utils/download.py +0 -0
  45. {hfutils-0.2.5 → hfutils-0.2.7}/hfutils/utils/path.py +0 -0
  46. {hfutils-0.2.5 → hfutils-0.2.7}/hfutils/utils/temp.py +0 -0
  47. {hfutils-0.2.5 → hfutils-0.2.7}/hfutils/utils/tqdm_.py +0 -0
  48. {hfutils-0.2.5 → hfutils-0.2.7}/hfutils/utils/walk.py +0 -0
  49. {hfutils-0.2.5 → hfutils-0.2.7}/hfutils.egg-info/dependency_links.txt +0 -0
  50. {hfutils-0.2.5 → hfutils-0.2.7}/hfutils.egg-info/entry_points.txt +0 -0
  51. {hfutils-0.2.5 → hfutils-0.2.7}/hfutils.egg-info/top_level.txt +0 -0
  52. {hfutils-0.2.5 → hfutils-0.2.7}/requirements-7z.txt +0 -0
  53. {hfutils-0.2.5 → hfutils-0.2.7}/requirements-doc.txt +0 -0
  54. {hfutils-0.2.5 → hfutils-0.2.7}/requirements-rar.txt +0 -0
  55. {hfutils-0.2.5 → hfutils-0.2.7}/requirements-test.txt +0 -0
  56. {hfutils-0.2.5 → hfutils-0.2.7}/requirements-transfer.txt +0 -0
  57. {hfutils-0.2.5 → hfutils-0.2.7}/setup.cfg +0 -0
  58. {hfutils-0.2.5 → hfutils-0.2.7}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hfutils
3
- Version: 0.2.5
3
+ Version: 0.2.7
4
4
  Summary: Useful utilities for huggingface
5
5
  Home-page: https://github.com/deepghs/hfutils
6
6
  Author: narugo1992
@@ -21,31 +21,15 @@ Requires-Python: >=3.8
21
21
  Description-Content-Type: text/markdown
22
22
  License-File: LICENSE
23
23
  Requires-Dist: hbutils>=0.9.0
24
- Requires-Dist: huggingface_hub>=0.22
24
+ Requires-Dist: huggingface_hub>=0.23
25
25
  Requires-Dist: tqdm
26
26
  Requires-Dist: requests
27
27
  Requires-Dist: click>=7
28
28
  Requires-Dist: tzlocal
29
29
  Requires-Dist: natsort
30
- Provides-Extra: rar
31
- Requires-Dist: rarfile; extra == "rar"
32
- Provides-Extra: test
33
- Requires-Dist: coverage>=5; extra == "test"
34
- Requires-Dist: mock>=4.0.3; extra == "test"
35
- Requires-Dist: flake8~=3.5; extra == "test"
36
- Requires-Dist: testfixtures>=6.18.5; extra == "test"
37
- Requires-Dist: pytest~=6.2.5; extra == "test"
38
- Requires-Dist: pytest-cov~=3.0.0; extra == "test"
39
- Requires-Dist: pytest-mock~=3.6.1; extra == "test"
40
- Requires-Dist: pytest-xdist>=1.34.0; extra == "test"
41
- Requires-Dist: pytest-rerunfailures~=10.2; extra == "test"
42
- Requires-Dist: pytest-timeout~=2.0.2; extra == "test"
43
- Requires-Dist: pytest-benchmark~=3.4.0; extra == "test"
44
- Requires-Dist: easydict<2,>=1.7; extra == "test"
45
- Requires-Dist: testtools>=2; extra == "test"
46
- Requires-Dist: where>=1.0.2; extra == "test"
47
- Requires-Dist: responses>=0.20.0; extra == "test"
48
- Requires-Dist: natsort; extra == "test"
30
+ Provides-Extra: build
31
+ Requires-Dist: pyinstaller<5,>=4.7; extra == "build"
32
+ Requires-Dist: setuptools<70; extra == "build"
49
33
  Provides-Extra: doc
50
34
  Requires-Dist: Jinja2>=3.0.0; extra == "doc"
51
35
  Requires-Dist: sphinx>=3.2.0; extra == "doc"
@@ -66,12 +50,29 @@ Requires-Dist: ipykernel>=6.15; extra == "doc"
66
50
  Requires-Dist: py-cpuinfo>=8.0.0; extra == "doc"
67
51
  Requires-Dist: click>=7.0.0; extra == "doc"
68
52
  Requires-Dist: pandas; extra == "doc"
69
- Provides-Extra: build
70
- Requires-Dist: pyinstaller<5,>=4.7; extra == "build"
71
53
  Provides-Extra: 7z
72
54
  Requires-Dist: py7zr; extra == "7z"
73
55
  Provides-Extra: transfer
74
56
  Requires-Dist: hf-transfer; extra == "transfer"
57
+ Provides-Extra: test
58
+ Requires-Dist: coverage>=5; extra == "test"
59
+ Requires-Dist: mock>=4.0.3; extra == "test"
60
+ Requires-Dist: flake8~=3.5; extra == "test"
61
+ Requires-Dist: testfixtures>=6.18.5; extra == "test"
62
+ Requires-Dist: pytest~=6.2.5; extra == "test"
63
+ Requires-Dist: pytest-cov~=3.0.0; extra == "test"
64
+ Requires-Dist: pytest-mock~=3.6.1; extra == "test"
65
+ Requires-Dist: pytest-xdist>=1.34.0; extra == "test"
66
+ Requires-Dist: pytest-rerunfailures~=10.2; extra == "test"
67
+ Requires-Dist: pytest-timeout~=2.0.2; extra == "test"
68
+ Requires-Dist: pytest-benchmark~=3.4.0; extra == "test"
69
+ Requires-Dist: easydict<2,>=1.7; extra == "test"
70
+ Requires-Dist: testtools>=2; extra == "test"
71
+ Requires-Dist: where>=1.0.2; extra == "test"
72
+ Requires-Dist: responses>=0.20.0; extra == "test"
73
+ Requires-Dist: natsort; extra == "test"
74
+ Provides-Extra: rar
75
+ Requires-Dist: rarfile; extra == "rar"
75
76
 
76
77
  # hfutils
77
78
 
@@ -0,0 +1,4 @@
1
+ from .entry import hfutilscli
2
+
3
+ if __name__ == '__main__':
4
+ hfutilscli()
@@ -7,7 +7,7 @@ Overview:
7
7
  __TITLE__ = 'hfutils'
8
8
 
9
9
  #: Version of this project.
10
- __VERSION__ = '0.2.5'
10
+ __VERSION__ = '0.2.7'
11
11
 
12
12
  #: Short description of the project, will be included in ``setup.py``.
13
13
  __DESCRIPTION__ = 'Useful utilities for huggingface'
@@ -1,6 +1,7 @@
1
1
  from .dispatch import hfutilcli
2
2
  from .download import _add_download_subcommand
3
3
  from .ls import _add_ls_subcommand
4
+ from .ls_repo import _add_ls_repo_subcommand
4
5
  from .upload import _add_upload_subcommand
5
6
  from .whoami import _add_whoami_subcommand
6
7
 
@@ -9,6 +10,7 @@ _DECORATORS = [
9
10
  _add_upload_subcommand,
10
11
  _add_ls_subcommand,
11
12
  _add_whoami_subcommand,
13
+ _add_ls_repo_subcommand,
12
14
  ]
13
15
 
14
16
  cli = hfutilcli
@@ -0,0 +1,74 @@
1
+ import fnmatch
2
+ from typing import Optional
3
+
4
+ import click
5
+ from huggingface_hub.utils import LocalTokenNotFoundError
6
+
7
+ from .base import CONTEXT_SETTINGS, ClickErrorException
8
+ from ..operate.base import REPO_TYPES, get_hf_client
9
+
10
+
11
+ class NoLocalAuthentication(ClickErrorException):
12
+ """
13
+ Exception raised when there is no local authentication token.
14
+ """
15
+ exit_code = 0x31
16
+
17
+
18
+ def _add_ls_repo_subcommand(cli: click.Group) -> click.Group:
19
+ """
20
+ Add the ls_repo subcommand to the CLI.
21
+
22
+ :param cli: The click Group object.
23
+ :type cli: click.Group
24
+
25
+ :return: The updated click Group object.
26
+ :rtype: click.Group
27
+ """
28
+
29
+ @cli.command('ls_repo', help='List repositories from HuggingFace.\n\n'
30
+ 'Set environment $HF_TOKEN to use your own access token.',
31
+ context_settings=CONTEXT_SETTINGS)
32
+ @click.option('-a', '--author', 'author', type=str, default=None,
33
+ help='Author of the repositories. Search my repositories when not given.')
34
+ @click.option('-t', '--type', 'repo_type', type=click.Choice(REPO_TYPES), default='dataset',
35
+ help='Type of the HuggingFace repository.', show_default=True)
36
+ @click.option('-p', '--pattern', 'pattern', type=str, default='*',
37
+ help='Pattern of the repository names.', show_default=True)
38
+ def ls(author: Optional[str], repo_type: str, pattern: str):
39
+ """
40
+ List repositories from HuggingFace.
41
+
42
+ :param author: Author of the repositories.
43
+ :type author: Optional[str]
44
+ :param repo_type: Type of the HuggingFace repository.
45
+ :type repo_type: str
46
+ :param pattern: Pattern of the repository names.
47
+ :type pattern: str
48
+ """
49
+ hf_client = get_hf_client()
50
+ if not author:
51
+ try:
52
+ info = hf_client.whoami()
53
+ author = author or info['name']
54
+ except LocalTokenNotFoundError:
55
+ raise NoLocalAuthentication(
56
+ 'Authentication failed.\n'
57
+ 'Make sure you have set the correct Huggingface token.\n'
58
+ 'Or if need to use this with guest mode, please explicitly set the `-a` option.'
59
+ )
60
+
61
+ if repo_type == 'model':
62
+ r = hf_client.list_models(author=author)
63
+ elif repo_type == 'dataset':
64
+ r = hf_client.list_datasets(author=author)
65
+ elif repo_type == 'space':
66
+ r = hf_client.list_spaces(author=author)
67
+ else:
68
+ raise ValueError(f'Unknown repository type - {repo_type!r}.') # pragma: no cover
69
+
70
+ for repo_item in r:
71
+ if fnmatch.fnmatch(repo_item.id, pattern):
72
+ print(repo_item.id)
73
+
74
+ return cli
@@ -44,8 +44,6 @@ def download_file_to_file(local_file: str, repo_id: str, file_in_repo: str,
44
44
  filename=hf_normpath(file_in_repo),
45
45
  revision=revision,
46
46
  local_dir=td,
47
- force_download=True,
48
- local_dir_use_symlinks=False,
49
47
  resume_download=resume_download,
50
48
  )
51
49
  finally:
@@ -0,0 +1,247 @@
1
+ {
2
+ "datasets": [
3
+ "ade_corpus_v2",
4
+ "afrikaans_ner_corpus",
5
+ "app_reviews",
6
+ "arabic_billion_words",
7
+ "arabic_speech_corpus",
8
+ "arxiv_dataset",
9
+ "aslg_pc12",
10
+ "autshumato",
11
+ "banking77",
12
+ "bigbench",
13
+ "billsum",
14
+ "blended_skill_talk",
15
+ "bnl_newspapers",
16
+ "bookcorpus",
17
+ "bswac",
18
+ "c3",
19
+ "c4",
20
+ "cail2018",
21
+ "caner",
22
+ "catalonia_independence",
23
+ "cawac",
24
+ "cbt",
25
+ "cc100",
26
+ "cdsc",
27
+ "cifar10",
28
+ "cifar100",
29
+ "clickbait_news_bg",
30
+ "clinc_oos",
31
+ "clue",
32
+ "cmu_hinglish_dog",
33
+ "code_search_net",
34
+ "conceptnet5",
35
+ "conll2012_ontonotesv5",
36
+ "consumer-finance-complaints",
37
+ "conv_ai",
38
+ "conv_ai_2",
39
+ "conv_ai_3",
40
+ "cornell_movie_dialog",
41
+ "cos_e",
42
+ "covid_qa_ucsd",
43
+ "covid_tweets_japanese",
44
+ "covost2",
45
+ "cppe-5",
46
+ "crime_and_punish",
47
+ "cs_restaurants",
48
+ "daily_dialog",
49
+ "danish_political_comments",
50
+ "definite_pronoun_resolution",
51
+ "dialog_re",
52
+ "diplomacy_detection",
53
+ "disaster_response_messages",
54
+ "discofuse",
55
+ "doqa",
56
+ "dream",
57
+ "dutch_social",
58
+ "dyk",
59
+ "ehealth_kd",
60
+ "elkarhizketak",
61
+ "emo",
62
+ "emotone_ar",
63
+ "enwik8",
64
+ "esnli",
65
+ "ett",
66
+ "eu_regulatory_ir",
67
+ "eurlex",
68
+ "euronews",
69
+ "europa_eac_tm",
70
+ "europa_ecdc_tm",
71
+ "factckbr",
72
+ "fake_news_english",
73
+ "farsi_news",
74
+ "fashion_mnist",
75
+ "food101",
76
+ "generics_kb",
77
+ "germaner",
78
+ "germeval_14",
79
+ "glucose",
80
+ "gnad10",
81
+ "go_emotions",
82
+ "grail_qa",
83
+ "gsm8k",
84
+ "gutenberg_time",
85
+ "hansards",
86
+ "harem",
87
+ "has_part",
88
+ "hate_speech_filipino",
89
+ "hate_speech_pl",
90
+ "hate_speech_portuguese",
91
+ "hebrew_projectbenyehuda",
92
+ "hebrew_sentiment",
93
+ "hebrew_this_world",
94
+ "hope_edi",
95
+ "hotpot_qa",
96
+ "hover",
97
+ "hrenwac_para",
98
+ "hrwac",
99
+ "humicroedit",
100
+ "hyperpartisan_news_detection",
101
+ "id_clickbait",
102
+ "id_nergrit_corpus",
103
+ "id_newspapers_2018",
104
+ "ilist",
105
+ "imagenet-1k",
106
+ "imppres",
107
+ "indic_glue",
108
+ "isixhosa_ner_corpus",
109
+ "isizulu_ner_corpus",
110
+ "jeopardy",
111
+ "jnlpba",
112
+ "journalists_questions",
113
+ "kilt_tasks",
114
+ "klue",
115
+ "kor_ner",
116
+ "kor_sarcasm",
117
+ "librispeech_asr",
118
+ "lince",
119
+ "liveqa",
120
+ "lm1b",
121
+ "makhzan",
122
+ "matinf",
123
+ "mbpp",
124
+ "mc4",
125
+ "med_hop",
126
+ "medical_questions_pairs",
127
+ "movie_rationales",
128
+ "mrqa",
129
+ "ms_marco",
130
+ "muchocine",
131
+ "narrativeqa",
132
+ "nchlt",
133
+ "ncslgr",
134
+ "nell",
135
+ "newsqa",
136
+ "nkjp-ner",
137
+ "nq_open",
138
+ "oclar",
139
+ "offenseval_dravidian",
140
+ "ohsumed",
141
+ "onestop_english",
142
+ "openai_humaneval",
143
+ "para_crawl",
144
+ "para_pat",
145
+ "parsinlu_reading_comprehension",
146
+ "paws",
147
+ "paws-x",
148
+ "peoples_daily_ner",
149
+ "per_sent",
150
+ "proto_qa",
151
+ "psc",
152
+ "ptb_text_only",
153
+ "qa4mre",
154
+ "qa_zre",
155
+ "qangaroo",
156
+ "qanta",
157
+ "quail",
158
+ "quarel",
159
+ "quickdraw",
160
+ "quora",
161
+ "re_dial",
162
+ "reclor",
163
+ "reddit_tifu",
164
+ "roman_urdu",
165
+ "roman_urdu_hate_speech",
166
+ "ronec",
167
+ "rotten_tomatoes",
168
+ "scan",
169
+ "scielo",
170
+ "sede",
171
+ "selqa",
172
+ "sem_eval_2010_task_8",
173
+ "sem_eval_2014_task_1",
174
+ "sem_eval_2018_task_1",
175
+ "sem_eval_2020_task_11",
176
+ "sent_comp",
177
+ "senti_lex",
178
+ "senti_ws",
179
+ "sepedi_ner",
180
+ "sesotho_ner_corpus",
181
+ "setimes",
182
+ "setswana_ner_corpus",
183
+ "siswati_ner_corpus",
184
+ "snips_built_in_intents",
185
+ "snow_simplified_japanese_corpus",
186
+ "so_stacksample",
187
+ "sofc_materials_articles",
188
+ "sogou_news",
189
+ "squad_kor_v1",
190
+ "squad_kor_v2",
191
+ "srwac",
192
+ "story_cloze",
193
+ "style_change_detection",
194
+ "svhn",
195
+ "swahili",
196
+ "swahili_news",
197
+ "swedish_medical_ner",
198
+ "tamilmixsentiment",
199
+ "tapaco",
200
+ "tashkeela",
201
+ "telugu_books",
202
+ "telugu_news",
203
+ "thai_toxicity_tweet",
204
+ "times_of_india_news_headlines",
205
+ "timit_asr",
206
+ "tmu_gfm_dataset",
207
+ "truthful_qa",
208
+ "turk",
209
+ "turkic_xwmt",
210
+ "turkish_shrinked_ner",
211
+ "tweet_eval",
212
+ "tweet_qa",
213
+ "tweets_ar_en_parallel",
214
+ "tweets_hate_speech_detection",
215
+ "ubuntu_dialogs_corpus",
216
+ "udhr",
217
+ "um005",
218
+ "universal_dependencies",
219
+ "universal_morphologies",
220
+ "urdu_fake_news",
221
+ "urdu_sentiment_corpus",
222
+ "vctk",
223
+ "vivos",
224
+ "web_nlg",
225
+ "web_of_science",
226
+ "web_questions",
227
+ "wi_locness",
228
+ "wiki40b",
229
+ "wiki_hop",
230
+ "wiki_lingua",
231
+ "wiki_qa",
232
+ "wiki_snippets",
233
+ "wikipedia",
234
+ "wikitext",
235
+ "wikitext_tl39",
236
+ "wongnai_reviews",
237
+ "xnli",
238
+ "xquad_r",
239
+ "yahoo_answers_qa",
240
+ "yahoo_answers_topics",
241
+ "yelp_review_full",
242
+ "yoruba_bbc_topics",
243
+ "youtube_caption_corrections"
244
+ ],
245
+ "models": [],
246
+ "spaces": []
247
+ }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hfutils
3
- Version: 0.2.5
3
+ Version: 0.2.7
4
4
  Summary: Useful utilities for huggingface
5
5
  Home-page: https://github.com/deepghs/hfutils
6
6
  Author: narugo1992
@@ -21,31 +21,15 @@ Requires-Python: >=3.8
21
21
  Description-Content-Type: text/markdown
22
22
  License-File: LICENSE
23
23
  Requires-Dist: hbutils>=0.9.0
24
- Requires-Dist: huggingface_hub>=0.22
24
+ Requires-Dist: huggingface_hub>=0.23
25
25
  Requires-Dist: tqdm
26
26
  Requires-Dist: requests
27
27
  Requires-Dist: click>=7
28
28
  Requires-Dist: tzlocal
29
29
  Requires-Dist: natsort
30
- Provides-Extra: rar
31
- Requires-Dist: rarfile; extra == "rar"
32
- Provides-Extra: test
33
- Requires-Dist: coverage>=5; extra == "test"
34
- Requires-Dist: mock>=4.0.3; extra == "test"
35
- Requires-Dist: flake8~=3.5; extra == "test"
36
- Requires-Dist: testfixtures>=6.18.5; extra == "test"
37
- Requires-Dist: pytest~=6.2.5; extra == "test"
38
- Requires-Dist: pytest-cov~=3.0.0; extra == "test"
39
- Requires-Dist: pytest-mock~=3.6.1; extra == "test"
40
- Requires-Dist: pytest-xdist>=1.34.0; extra == "test"
41
- Requires-Dist: pytest-rerunfailures~=10.2; extra == "test"
42
- Requires-Dist: pytest-timeout~=2.0.2; extra == "test"
43
- Requires-Dist: pytest-benchmark~=3.4.0; extra == "test"
44
- Requires-Dist: easydict<2,>=1.7; extra == "test"
45
- Requires-Dist: testtools>=2; extra == "test"
46
- Requires-Dist: where>=1.0.2; extra == "test"
47
- Requires-Dist: responses>=0.20.0; extra == "test"
48
- Requires-Dist: natsort; extra == "test"
30
+ Provides-Extra: build
31
+ Requires-Dist: pyinstaller<5,>=4.7; extra == "build"
32
+ Requires-Dist: setuptools<70; extra == "build"
49
33
  Provides-Extra: doc
50
34
  Requires-Dist: Jinja2>=3.0.0; extra == "doc"
51
35
  Requires-Dist: sphinx>=3.2.0; extra == "doc"
@@ -66,12 +50,29 @@ Requires-Dist: ipykernel>=6.15; extra == "doc"
66
50
  Requires-Dist: py-cpuinfo>=8.0.0; extra == "doc"
67
51
  Requires-Dist: click>=7.0.0; extra == "doc"
68
52
  Requires-Dist: pandas; extra == "doc"
69
- Provides-Extra: build
70
- Requires-Dist: pyinstaller<5,>=4.7; extra == "build"
71
53
  Provides-Extra: 7z
72
54
  Requires-Dist: py7zr; extra == "7z"
73
55
  Provides-Extra: transfer
74
56
  Requires-Dist: hf-transfer; extra == "transfer"
57
+ Provides-Extra: test
58
+ Requires-Dist: coverage>=5; extra == "test"
59
+ Requires-Dist: mock>=4.0.3; extra == "test"
60
+ Requires-Dist: flake8~=3.5; extra == "test"
61
+ Requires-Dist: testfixtures>=6.18.5; extra == "test"
62
+ Requires-Dist: pytest~=6.2.5; extra == "test"
63
+ Requires-Dist: pytest-cov~=3.0.0; extra == "test"
64
+ Requires-Dist: pytest-mock~=3.6.1; extra == "test"
65
+ Requires-Dist: pytest-xdist>=1.34.0; extra == "test"
66
+ Requires-Dist: pytest-rerunfailures~=10.2; extra == "test"
67
+ Requires-Dist: pytest-timeout~=2.0.2; extra == "test"
68
+ Requires-Dist: pytest-benchmark~=3.4.0; extra == "test"
69
+ Requires-Dist: easydict<2,>=1.7; extra == "test"
70
+ Requires-Dist: testtools>=2; extra == "test"
71
+ Requires-Dist: where>=1.0.2; extra == "test"
72
+ Requires-Dist: responses>=0.20.0; extra == "test"
73
+ Requires-Dist: natsort; extra == "test"
74
+ Provides-Extra: rar
75
+ Requires-Dist: rarfile; extra == "rar"
75
76
 
76
77
  # hfutils
77
78
 
@@ -10,6 +10,7 @@ requirements-transfer.txt
10
10
  requirements.txt
11
11
  setup.py
12
12
  hfutils/__init__.py
13
+ hfutils/__main__.py
13
14
  hfutils.egg-info/PKG-INFO
14
15
  hfutils.egg-info/SOURCES.txt
15
16
  hfutils.egg-info/dependency_links.txt
@@ -30,6 +31,7 @@ hfutils/entry/cli.py
30
31
  hfutils/entry/dispatch.py
31
32
  hfutils/entry/download.py
32
33
  hfutils/entry/ls.py
34
+ hfutils/entry/ls_repo.py
33
35
  hfutils/entry/upload.py
34
36
  hfutils/entry/whoami.py
35
37
  hfutils/index/__init__.py
@@ -1,5 +1,5 @@
1
1
  hbutils>=0.9.0
2
- huggingface_hub>=0.22
2
+ huggingface_hub>=0.23
3
3
  tqdm
4
4
  requests
5
5
  click>=7
@@ -11,6 +11,7 @@ py7zr
11
11
 
12
12
  [build]
13
13
  pyinstaller<5,>=4.7
14
+ setuptools<70
14
15
 
15
16
  [doc]
16
17
  Jinja2>=3.0.0
@@ -0,0 +1,2 @@
1
+ pyinstaller>=4.7,<5
2
+ setuptools<70
@@ -1,5 +1,5 @@
1
1
  hbutils>=0.9.0
2
- huggingface_hub>=0.22
2
+ huggingface_hub>=0.23
3
3
  tqdm
4
4
  requests
5
5
  click>=7