huggingface-hub 1.0.0rc4__py3-none-any.whl → 1.0.0rc5__py3-none-any.whl

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.

Potentially problematic release.


This version of huggingface-hub might be problematic. Click here for more details.

@@ -46,7 +46,7 @@ import sys
46
46
  from typing import TYPE_CHECKING
47
47
 
48
48
 
49
- __version__ = "1.0.0.rc4"
49
+ __version__ = "1.0.0.rc5"
50
50
 
51
51
  # Alphabetical order of definitions is ensured in tests
52
52
  # WARNING: any comment added in this dictionary definition will be lost when
@@ -58,9 +58,12 @@ def typer_factory(help: str) -> typer.Typer:
58
58
  return typer.Typer(
59
59
  help=help,
60
60
  add_completion=True,
61
- rich_markup_mode=None,
62
61
  no_args_is_help=True,
63
62
  cls=AlphabeticalMixedGroup,
63
+ # Disable rich completely for consistent experience
64
+ rich_markup_mode=None,
65
+ rich_help_panel=None,
66
+ pretty_exceptions_enable=False,
64
67
  )
65
68
 
66
69
 
@@ -30,4 +30,4 @@ def env() -> None:
30
30
 
31
31
  def version() -> None:
32
32
  """Print CLI version."""
33
- print(f"huggingface_hub version: {__version__}")
33
+ print(__version__)
@@ -102,6 +102,13 @@ def hf_request_event_hook(request: httpx.Request) -> None:
102
102
  return request_id
103
103
 
104
104
 
105
+ async def async_hf_request_event_hook(request: httpx.Request) -> None:
106
+ """
107
+ Async version of `hf_request_event_hook`.
108
+ """
109
+ return hf_request_event_hook(request)
110
+
111
+
105
112
  def default_client_factory() -> httpx.Client:
106
113
  """
107
114
  Factory function to create a `httpx.Client` with the default transport.
@@ -118,7 +125,7 @@ def default_async_client_factory() -> httpx.AsyncClient:
118
125
  Factory function to create a `httpx.AsyncClient` with the default transport.
119
126
  """
120
127
  return httpx.AsyncClient(
121
- event_hooks={"request": [hf_request_event_hook]},
128
+ event_hooks={"request": [async_hf_request_event_hook]},
122
129
  follow_redirects=True,
123
130
  timeout=httpx.Timeout(constants.DEFAULT_REQUEST_TIMEOUT, write=60.0),
124
131
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: huggingface-hub
3
- Version: 1.0.0rc4
3
+ Version: 1.0.0rc5
4
4
  Summary: Client library to download and publish models, datasets and other repos on the huggingface.co hub
5
5
  Home-page: https://github.com/huggingface/huggingface_hub
6
6
  Author: Hugging Face, Inc.
@@ -1,4 +1,4 @@
1
- huggingface_hub/__init__.py,sha256=M8lRr0tch2-lfJDkwCU8WdW4Co63nM3dhCorOmtlP40,51906
1
+ huggingface_hub/__init__.py,sha256=kHPKEu5MN6v18fYf3kfgy_wzN5JDHLfXVtRH59Hx2WE,51906
2
2
  huggingface_hub/_commit_api.py,sha256=4iFe5TQpS8jTRW7sDWut6HUU1eOkw80G5nJooaDKiOM,40890
3
3
  huggingface_hub/_commit_scheduler.py,sha256=tqcdWVGJRIxGQtkFHs_AgBdN9ztUjOQSuAhfMAr1ieM,14751
4
4
  huggingface_hub/_inference_endpoints.py,sha256=cGiZg244nIOi2OLTqm4V8-ZUY3O0Rr7NlOmoLeHUIbY,17592
@@ -26,7 +26,7 @@ huggingface_hub/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
26
26
  huggingface_hub/repocard.py,sha256=-wss1XDYjr88OjwK4Gzi8c-gQwPIHM8qRgxXYgeilUM,34978
27
27
  huggingface_hub/repocard_data.py,sha256=DLdOKlnQCHOOpU-e_skx0YaHxoqN9ZKIOmmMjHUqb1w,34063
28
28
  huggingface_hub/cli/__init__.py,sha256=A4zmzuHD2OHjQ5zmdfcnsj0JeCzHVPtpzh-wCjInugA,606
29
- huggingface_hub/cli/_cli_utils.py,sha256=6oyDMfc4-tsUg-quEWS22paUGVAowxuYZ7pPkvPoIus,5259
29
+ huggingface_hub/cli/_cli_utils.py,sha256=CzSGUAu3bOiYy_n6r_QT9iJcMtbRRMoWwsM96pltK8c,5389
30
30
  huggingface_hub/cli/auth.py,sha256=VUA830kel4EGwJjHllz2THW94wzcoWssBKrChMl3A8Q,5177
31
31
  huggingface_hub/cli/cache.py,sha256=b8NN3QS0GgWJqh051848MN7mjER9AUMAqgg6jijHWmQ,13999
32
32
  huggingface_hub/cli/download.py,sha256=bOzXXIDBldg513MTuUTk09GlcbeUmHGwY7Udnlw8J7U,6506
@@ -35,7 +35,7 @@ huggingface_hub/cli/jobs.py,sha256=HgxxxDRaCHH62eBpihzf1SakevM3OWewPiIzWjFkYLw,2
35
35
  huggingface_hub/cli/lfs.py,sha256=UJI5nBbrt_a-lm5uU88gxD6hVu8xyQav-zBxLTv3Wzo,5895
36
36
  huggingface_hub/cli/repo.py,sha256=DaRwZ-h66wpRLhqjnuxzCOEt0lh0ZbRigsIt9-oQ7iI,9920
37
37
  huggingface_hub/cli/repo_files.py,sha256=6d5GsLsCjqSKTSbJqCHnrRxB9kXj-yLRAtcVbQkQNMo,2799
38
- huggingface_hub/cli/system.py,sha256=U6j_MFDnlzBLRi2LZjXMxzRcp50UMdAZ7z5tWuPVJYk,1012
38
+ huggingface_hub/cli/system.py,sha256=bEIXmK3qz4qIej1lv1LMCxnXEN9zZnwdl42g4mV_1nQ,982
39
39
  huggingface_hub/cli/upload.py,sha256=4OiGfKW12gPQJBSOqcoeWyTrBUSKeVrJ43cOQ2wgtrA,11823
40
40
  huggingface_hub/cli/upload_large_folder.py,sha256=xQuloimQT0PQH6r5urRpLv8M9I99yAWSGM-sbkG2pu8,4470
41
41
  huggingface_hub/inference/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -124,7 +124,7 @@ huggingface_hub/utils/_experimental.py,sha256=3-c8irbn9sJr2CwWbzhGkIrdXKg8_x7Bif
124
124
  huggingface_hub/utils/_fixes.py,sha256=xQZzfwLqZV8-gNcw9mrZ-M1acA6NZHszI_-cSZIWN-U,3978
125
125
  huggingface_hub/utils/_git_credential.py,sha256=4B77QzeiPxCwK6BWZgUc1avzRKpna3wYlhVg7AuSCzA,4613
126
126
  huggingface_hub/utils/_headers.py,sha256=k_ApvA8fJGHc0yNp2IFY8wySM9MQ5UZEpjr1g-fpRJ4,8060
127
- huggingface_hub/utils/_http.py,sha256=DzG8R1ErBMPuezoBE-IY79Txvhcx8OwRmvuH6LU99Ck,30069
127
+ huggingface_hub/utils/_http.py,sha256=gjlfl33a2a4qrrh4Uf4KZDk6vOcyi8TXayhAKLskv7w,30252
128
128
  huggingface_hub/utils/_lfs.py,sha256=EC0Oz6Wiwl8foRNkUOzrETXzAWlbgpnpxo5a410ovFY,3957
129
129
  huggingface_hub/utils/_pagination.py,sha256=wEHEWhCu9vN5pv51t7ixSGe13g63kS6AJM4P53eY9M4,1894
130
130
  huggingface_hub/utils/_paths.py,sha256=WCR2WbqDJLdNlU4XZNXXNmGct3OiDwPesGYrq41T2wE,5036
@@ -142,9 +142,9 @@ huggingface_hub/utils/insecure_hashlib.py,sha256=z3dVUFvdBZ8kQI_8Vzvvlr3ims-EBiY
142
142
  huggingface_hub/utils/logging.py,sha256=N6NXaCcbPbZSF-Oe-TY3ZnmkpmdFVyTOV8ASo-yVXLE,4916
143
143
  huggingface_hub/utils/sha.py,sha256=OFnNGCba0sNcT2gUwaVCJnldxlltrHHe0DS_PCpV3C4,2134
144
144
  huggingface_hub/utils/tqdm.py,sha256=-9gfgNA8bg5v5YBToSuB6noClI3a6YaGeFZP61IWmeY,10662
145
- huggingface_hub-1.0.0rc4.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
146
- huggingface_hub-1.0.0rc4.dist-info/METADATA,sha256=4xWA1D_7yz290rqZrTE49X9EEMFdxSKlBovEBm0yx88,14164
147
- huggingface_hub-1.0.0rc4.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
148
- huggingface_hub-1.0.0rc4.dist-info/entry_points.txt,sha256=8Dw-X6nV_toOLZqujrhQMj2uTLs4wzV8EIF1y3FlzVs,153
149
- huggingface_hub-1.0.0rc4.dist-info/top_level.txt,sha256=8KzlQJAY4miUvjAssOAJodqKOw3harNzuiwGQ9qLSSk,16
150
- huggingface_hub-1.0.0rc4.dist-info/RECORD,,
145
+ huggingface_hub-1.0.0rc5.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
146
+ huggingface_hub-1.0.0rc5.dist-info/METADATA,sha256=qqE6ak6OJOMZBsrVWNKcSAY0aEumDU_XmkcV6ANsz4s,14164
147
+ huggingface_hub-1.0.0rc5.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
148
+ huggingface_hub-1.0.0rc5.dist-info/entry_points.txt,sha256=8Dw-X6nV_toOLZqujrhQMj2uTLs4wzV8EIF1y3FlzVs,153
149
+ huggingface_hub-1.0.0rc5.dist-info/top_level.txt,sha256=8KzlQJAY4miUvjAssOAJodqKOw3harNzuiwGQ9qLSSk,16
150
+ huggingface_hub-1.0.0rc5.dist-info/RECORD,,