huggingface-hub 0.23.0__py3-none-any.whl → 0.23.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.
- huggingface_hub/__init__.py +1 -1
- huggingface_hub/hf_file_system.py +6 -0
- {huggingface_hub-0.23.0.dist-info → huggingface_hub-0.23.1.dist-info}/METADATA +1 -1
- {huggingface_hub-0.23.0.dist-info → huggingface_hub-0.23.1.dist-info}/RECORD +8 -8
- {huggingface_hub-0.23.0.dist-info → huggingface_hub-0.23.1.dist-info}/LICENSE +0 -0
- {huggingface_hub-0.23.0.dist-info → huggingface_hub-0.23.1.dist-info}/WHEEL +0 -0
- {huggingface_hub-0.23.0.dist-info → huggingface_hub-0.23.1.dist-info}/entry_points.txt +0 -0
- {huggingface_hub-0.23.0.dist-info → huggingface_hub-0.23.1.dist-info}/top_level.txt +0 -0
huggingface_hub/__init__.py
CHANGED
|
@@ -517,6 +517,9 @@ class HfFileSystem(fsspec.AbstractFileSystem):
|
|
|
517
517
|
else:
|
|
518
518
|
out = None
|
|
519
519
|
parent_path = self._parent(path)
|
|
520
|
+
if not expand_info and parent_path not in self.dircache:
|
|
521
|
+
# Fill the cache with cheap call
|
|
522
|
+
self.ls(parent_path, expand_info=False)
|
|
520
523
|
if parent_path in self.dircache:
|
|
521
524
|
# Check if the path is in the cache
|
|
522
525
|
out1 = [o for o in self.dircache[parent_path] if o["name"] == path]
|
|
@@ -681,6 +684,9 @@ class HfFileSystemFile(fsspec.spec.AbstractBufferedFile):
|
|
|
681
684
|
f"{e}.\nMake sure the repository and revision exist before writing data."
|
|
682
685
|
) from e
|
|
683
686
|
raise
|
|
687
|
+
# avoid an unnecessary .info() call with expensive expand_info=True to instantiate .details
|
|
688
|
+
if kwargs.get("mode", "rb") == "rb":
|
|
689
|
+
self.details = fs.info(self.resolved_path.unresolve(), expand_info=False)
|
|
684
690
|
super().__init__(fs, self.resolved_path.unresolve(), **kwargs)
|
|
685
691
|
self.fs: HfFileSystem
|
|
686
692
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: huggingface-hub
|
|
3
|
-
Version: 0.23.
|
|
3
|
+
Version: 0.23.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=
|
|
1
|
+
huggingface_hub/__init__.py,sha256=Ve0gXDRzk-i00rJGQFbSMQinDOnEl5g_P86_l9l5zpk,32692
|
|
2
2
|
huggingface_hub/_commit_api.py,sha256=Z1sQnJx1xWfspsX6vS8eGTmr-9QujIoItjbnJVVyyCQ,29299
|
|
3
3
|
huggingface_hub/_commit_scheduler.py,sha256=nlJS_vnLb8i92NLrRwJX8Mg9QZ7f3kfLbLlQuEd5YjU,13647
|
|
4
4
|
huggingface_hub/_inference_endpoints.py,sha256=rBx6xgnSJq0JtntF1_zphj7NsCmduICqgZfmvscdE_w,15667
|
|
@@ -16,7 +16,7 @@ huggingface_hub/errors.py,sha256=IM0lNbExLzaYEs0HrrPvY4-kyj6DiP2Szu7Jy9slHOE,208
|
|
|
16
16
|
huggingface_hub/fastai_utils.py,sha256=5I7zAfgHJU_mZnxnf9wgWTHrCRu_EAV8VTangDVfE_o,16676
|
|
17
17
|
huggingface_hub/file_download.py,sha256=n5ovYqh1-xe3ptRHuS-EXn6X_-3ZVI7C-pQrHD45DtA,82236
|
|
18
18
|
huggingface_hub/hf_api.py,sha256=hyMkURhYXalCNG4Qqx3PhN7Ucru8m18ZidEok_T2504,375216
|
|
19
|
-
huggingface_hub/hf_file_system.py,sha256=
|
|
19
|
+
huggingface_hub/hf_file_system.py,sha256=EHSWD6Pdm9ED-cgNh-ozoiz69pODssKrObKybVJPBQA,37830
|
|
20
20
|
huggingface_hub/hub_mixin.py,sha256=ktwuDqSXFU2q2_xj676R-zag_tB3QEiMMVFueJ3YD9g,34644
|
|
21
21
|
huggingface_hub/inference_api.py,sha256=UXOKu_Ez2I3hDsjguqCcCrj03WFDndehpngYiIAucdg,8331
|
|
22
22
|
huggingface_hub/keras_mixin.py,sha256=2DF-hNGdxJCxqvcw46id-ExH_865ZAXsJd2vmpAuWHQ,19484
|
|
@@ -107,9 +107,9 @@ huggingface_hub/utils/insecure_hashlib.py,sha256=OjxlvtSQHpbLp9PWSrXBDJ0wHjxCBU-
|
|
|
107
107
|
huggingface_hub/utils/logging.py,sha256=Cp03s0uEl3kDM9XHQW9a8GAoExODQ-e7kEtgMt-_To8,4728
|
|
108
108
|
huggingface_hub/utils/sha.py,sha256=QLlIwPCyz46MmUc_4L8xl87KfYoBks9kPgsMZ5JCz-o,902
|
|
109
109
|
huggingface_hub/utils/tqdm.py,sha256=x35PqUA8bBBztPrqhv87Y_TGl5CdlfBs4pe6k1YyDJ8,9390
|
|
110
|
-
huggingface_hub-0.23.
|
|
111
|
-
huggingface_hub-0.23.
|
|
112
|
-
huggingface_hub-0.23.
|
|
113
|
-
huggingface_hub-0.23.
|
|
114
|
-
huggingface_hub-0.23.
|
|
115
|
-
huggingface_hub-0.23.
|
|
110
|
+
huggingface_hub-0.23.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
111
|
+
huggingface_hub-0.23.1.dist-info/METADATA,sha256=ZRJ_sSeAnUgh-JttdzKOwQwGw0Biu1SSckrYJanqJro,12994
|
|
112
|
+
huggingface_hub-0.23.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
113
|
+
huggingface_hub-0.23.1.dist-info/entry_points.txt,sha256=Y3Z2L02rBG7va_iE6RPXolIgwOdwUFONyRN3kXMxZ0g,131
|
|
114
|
+
huggingface_hub-0.23.1.dist-info/top_level.txt,sha256=8KzlQJAY4miUvjAssOAJodqKOw3harNzuiwGQ9qLSSk,16
|
|
115
|
+
huggingface_hub-0.23.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|