huggingface-hub 0.28.0rc4__py3-none-any.whl → 0.28.1__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__ = "0.28.0.rc4"
49
+ __version__ = "0.28.1"
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
@@ -2,7 +2,6 @@ import os
2
2
  import re
3
3
  import typing
4
4
  from typing import Literal, Optional, Tuple
5
- from urllib.parse import urljoin
6
5
 
7
6
 
8
7
  # Possible values for env variables
@@ -68,7 +67,7 @@ ENDPOINT = os.getenv("HF_ENDPOINT", "").rstrip("/") or (
68
67
  _HF_DEFAULT_STAGING_ENDPOINT if _staging_mode else _HF_DEFAULT_ENDPOINT
69
68
  )
70
69
 
71
- HUGGINGFACE_CO_URL_TEMPLATE = urljoin(ENDPOINT, "/{repo_id}/resolve/{revision}/{filename}")
70
+ HUGGINGFACE_CO_URL_TEMPLATE = ENDPOINT + "/{repo_id}/resolve/{revision}/{filename}"
72
71
  HUGGINGFACE_HEADER_X_REPO_COMMIT = "X-Repo-Commit"
73
72
  HUGGINGFACE_HEADER_X_LINKED_ETAG = "X-Linked-Etag"
74
73
  HUGGINGFACE_HEADER_X_LINKED_SIZE = "X-Linked-Size"
@@ -79,7 +78,7 @@ INFERENCE_ENDPOINT = os.environ.get("HF_INFERENCE_ENDPOINT", "https://api-infere
79
78
  INFERENCE_ENDPOINTS_ENDPOINT = "https://api.endpoints.huggingface.cloud/v2"
80
79
 
81
80
  # Proxy for third-party providers
82
- INFERENCE_PROXY_TEMPLATE = urljoin(ENDPOINT, "/api/inference-proxy/{provider}")
81
+ INFERENCE_PROXY_TEMPLATE = ENDPOINT + "/api/inference-proxy/{provider}"
83
82
 
84
83
  REPO_ID_SEPARATOR = "--"
85
84
  # ^ this substring is not allowed in repo_ids on hf.co
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: huggingface-hub
3
- Version: 0.28.0rc4
3
+ Version: 0.28.1
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=NJ0sxPoZ2ssbvzhgVvdERvTwp0FSlWQE4uUGZsb0O_I,48872
1
+ huggingface_hub/__init__.py,sha256=Jb4vfjjqH66CyTLCLUQJAW-yosi8Cz5CSfMtynsXJFI,48868
2
2
  huggingface_hub/_commit_api.py,sha256=TqXmu5moVAhBa7iuyJdsqsfRTxTpGMnvsPkb4GgC3dc,32636
3
3
  huggingface_hub/_commit_scheduler.py,sha256=tfIoO1xWHjTJ6qy6VS6HIoymDycFPg0d6pBSZprrU2U,14679
4
4
  huggingface_hub/_inference_endpoints.py,sha256=PmW6IdIq9SAvlniPuyh3alKfahAmm4cyArQ_vrIcgQE,16992
@@ -11,7 +11,7 @@ huggingface_hub/_upload_large_folder.py,sha256=g9P2-pQkbOd9UF_unXd9SpCX8p_U0gLyj
11
11
  huggingface_hub/_webhooks_payload.py,sha256=Xm3KaK7tCOGBlXkuZvbym6zjHXrT1XCrbUFWuXiBmNY,3617
12
12
  huggingface_hub/_webhooks_server.py,sha256=oCvpFrYjrhJjClAMw26SQfvN4DUItgK2IhFp1OVh2bU,15623
13
13
  huggingface_hub/community.py,sha256=4MtcoxEI9_0lmmilBEnvUEi8_O1Ivfa8p6eKxYU5-ts,12198
14
- huggingface_hub/constants.py,sha256=ha9L6-qMD9IxfHplUkWnXAfyKuNA6fVcVFRXfmYB3L4,8267
14
+ huggingface_hub/constants.py,sha256=PrJE6b8einTDbID6IHkgm28tNA8uwp3dt32NDoSPrys,8218
15
15
  huggingface_hub/errors.py,sha256=zble0j94ai8zwyM0a2DovwcF372zQohwDsgajTsaxqI,9703
16
16
  huggingface_hub/fastai_utils.py,sha256=DpeH9d-6ut2k_nCAAwglM51XmRmgfbRe2SPifpVL5Yk,16745
17
17
  huggingface_hub/file_download.py,sha256=h3egIfo07tAC7fbXFfVj1GRCmKn6qTXyMUoSYhu3bSo,70364
@@ -117,9 +117,9 @@ huggingface_hub/utils/insecure_hashlib.py,sha256=OjxlvtSQHpbLp9PWSrXBDJ0wHjxCBU-
117
117
  huggingface_hub/utils/logging.py,sha256=rkY4bb4aoXiM9MFtA2jGq9Mjh2rKZ0dYdwFM-x5odWc,4726
118
118
  huggingface_hub/utils/sha.py,sha256=OFnNGCba0sNcT2gUwaVCJnldxlltrHHe0DS_PCpV3C4,2134
119
119
  huggingface_hub/utils/tqdm.py,sha256=ZgdphuTnwAIaUKnnD2P7qVvNHpzHAyrYoItkiV0aEjQ,9835
120
- huggingface_hub-0.28.0rc4.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
121
- huggingface_hub-0.28.0rc4.dist-info/METADATA,sha256=95nEq8yWbAEkgbwL59T8lUxDrcP8M7GjIDuE-W_1k4E,13483
122
- huggingface_hub-0.28.0rc4.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
123
- huggingface_hub-0.28.0rc4.dist-info/entry_points.txt,sha256=Y3Z2L02rBG7va_iE6RPXolIgwOdwUFONyRN3kXMxZ0g,131
124
- huggingface_hub-0.28.0rc4.dist-info/top_level.txt,sha256=8KzlQJAY4miUvjAssOAJodqKOw3harNzuiwGQ9qLSSk,16
125
- huggingface_hub-0.28.0rc4.dist-info/RECORD,,
120
+ huggingface_hub-0.28.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
121
+ huggingface_hub-0.28.1.dist-info/METADATA,sha256=8vU6rq7_kzBwtVh5TY-h1UodfzCADDoHmsak4HCh7sA,13480
122
+ huggingface_hub-0.28.1.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
123
+ huggingface_hub-0.28.1.dist-info/entry_points.txt,sha256=Y3Z2L02rBG7va_iE6RPXolIgwOdwUFONyRN3kXMxZ0g,131
124
+ huggingface_hub-0.28.1.dist-info/top_level.txt,sha256=8KzlQJAY4miUvjAssOAJodqKOw3harNzuiwGQ9qLSSk,16
125
+ huggingface_hub-0.28.1.dist-info/RECORD,,