huggingface-hub 1.0.0rc4__py3-none-any.whl → 1.0.0rc6__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.
- huggingface_hub/__init__.py +6 -1
- huggingface_hub/cli/_cli_utils.py +4 -1
- huggingface_hub/cli/system.py +1 -1
- huggingface_hub/utils/_http.py +8 -1
- {huggingface_hub-1.0.0rc4.dist-info → huggingface_hub-1.0.0rc6.dist-info}/METADATA +1 -1
- {huggingface_hub-1.0.0rc4.dist-info → huggingface_hub-1.0.0rc6.dist-info}/RECORD +10 -10
- {huggingface_hub-1.0.0rc4.dist-info → huggingface_hub-1.0.0rc6.dist-info}/LICENSE +0 -0
- {huggingface_hub-1.0.0rc4.dist-info → huggingface_hub-1.0.0rc6.dist-info}/WHEEL +0 -0
- {huggingface_hub-1.0.0rc4.dist-info → huggingface_hub-1.0.0rc6.dist-info}/entry_points.txt +0 -0
- {huggingface_hub-1.0.0rc4.dist-info → huggingface_hub-1.0.0rc6.dist-info}/top_level.txt +0 -0
huggingface_hub/__init__.py
CHANGED
|
@@ -46,7 +46,7 @@ import sys
|
|
|
46
46
|
from typing import TYPE_CHECKING
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
__version__ = "1.0.0.
|
|
49
|
+
__version__ = "1.0.0.rc6"
|
|
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
|
|
@@ -111,6 +111,9 @@ _SUBMOD_ATTRS = {
|
|
|
111
111
|
"WebhooksServer",
|
|
112
112
|
"webhook_endpoint",
|
|
113
113
|
],
|
|
114
|
+
"cli._cli_utils": [
|
|
115
|
+
"typer_factory",
|
|
116
|
+
],
|
|
114
117
|
"community": [
|
|
115
118
|
"Discussion",
|
|
116
119
|
"DiscussionComment",
|
|
@@ -949,6 +952,7 @@ __all__ = [
|
|
|
949
952
|
"super_squash_history",
|
|
950
953
|
"suspend_scheduled_job",
|
|
951
954
|
"try_to_load_from_cache",
|
|
955
|
+
"typer_factory",
|
|
952
956
|
"unlike",
|
|
953
957
|
"update_collection_item",
|
|
954
958
|
"update_collection_metadata",
|
|
@@ -1117,6 +1121,7 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1117
1121
|
WebhooksServer, # noqa: F401
|
|
1118
1122
|
webhook_endpoint, # noqa: F401
|
|
1119
1123
|
)
|
|
1124
|
+
from .cli._cli_utils import typer_factory # noqa: F401
|
|
1120
1125
|
from .community import (
|
|
1121
1126
|
Discussion, # noqa: F401
|
|
1122
1127
|
DiscussionComment, # noqa: F401
|
|
@@ -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
|
|
huggingface_hub/cli/system.py
CHANGED
huggingface_hub/utils/_http.py
CHANGED
|
@@ -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": [
|
|
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.
|
|
3
|
+
Version: 1.0.0rc6
|
|
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=
|
|
1
|
+
huggingface_hub/__init__.py,sha256=1jeo3rG8MNLcO8Zm3qhAP3qm8Yaul9KQZrnswxQPOSg,52043
|
|
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=
|
|
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=
|
|
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=
|
|
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.
|
|
146
|
-
huggingface_hub-1.0.
|
|
147
|
-
huggingface_hub-1.0.
|
|
148
|
-
huggingface_hub-1.0.
|
|
149
|
-
huggingface_hub-1.0.
|
|
150
|
-
huggingface_hub-1.0.
|
|
145
|
+
huggingface_hub-1.0.0rc6.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
146
|
+
huggingface_hub-1.0.0rc6.dist-info/METADATA,sha256=iKnm7T2O1Yslql87ILShNoaCgys4ANJdPecD9YXJ7yo,14164
|
|
147
|
+
huggingface_hub-1.0.0rc6.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
148
|
+
huggingface_hub-1.0.0rc6.dist-info/entry_points.txt,sha256=8Dw-X6nV_toOLZqujrhQMj2uTLs4wzV8EIF1y3FlzVs,153
|
|
149
|
+
huggingface_hub-1.0.0rc6.dist-info/top_level.txt,sha256=8KzlQJAY4miUvjAssOAJodqKOw3harNzuiwGQ9qLSSk,16
|
|
150
|
+
huggingface_hub-1.0.0rc6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|