huggingface-hub 0.34.0__py3-none-any.whl → 0.34.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/cli/auth.py +3 -0
- huggingface_hub/cli/cache.py +4 -0
- huggingface_hub/cli/hf.py +2 -5
- huggingface_hub/cli/jobs.py +3 -0
- huggingface_hub/cli/repo.py +4 -0
- {huggingface_hub-0.34.0.dist-info → huggingface_hub-0.34.1.dist-info}/METADATA +1 -1
- {huggingface_hub-0.34.0.dist-info → huggingface_hub-0.34.1.dist-info}/RECORD +12 -12
- {huggingface_hub-0.34.0.dist-info → huggingface_hub-0.34.1.dist-info}/LICENSE +0 -0
- {huggingface_hub-0.34.0.dist-info → huggingface_hub-0.34.1.dist-info}/WHEEL +0 -0
- {huggingface_hub-0.34.0.dist-info → huggingface_hub-0.34.1.dist-info}/entry_points.txt +0 -0
- {huggingface_hub-0.34.0.dist-info → huggingface_hub-0.34.1.dist-info}/top_level.txt +0 -0
huggingface_hub/__init__.py
CHANGED
huggingface_hub/cli/auth.py
CHANGED
|
@@ -62,6 +62,9 @@ class AuthCommands(BaseHuggingfaceCLICommand):
|
|
|
62
62
|
auth_parser = parser.add_parser("auth", help="Manage authentication (login, logout, etc.).")
|
|
63
63
|
auth_subparsers = auth_parser.add_subparsers(help="Authentication subcommands")
|
|
64
64
|
|
|
65
|
+
# Show help if no subcommand is provided
|
|
66
|
+
auth_parser.set_defaults(func=lambda args: auth_parser.print_help())
|
|
67
|
+
|
|
65
68
|
# Add 'login' as a subcommand of 'auth'
|
|
66
69
|
login_parser = auth_subparsers.add_parser(
|
|
67
70
|
"login", help="Log in using a token from huggingface.co/settings/tokens"
|
huggingface_hub/cli/cache.py
CHANGED
|
@@ -65,6 +65,10 @@ class CacheCommand(BaseHuggingfaceCLICommand):
|
|
|
65
65
|
def register_subcommand(parser: _SubParsersAction):
|
|
66
66
|
cache_parser = parser.add_parser("cache", help="Manage local cache directory.")
|
|
67
67
|
cache_subparsers = cache_parser.add_subparsers(dest="cache_command", help="Cache subcommands")
|
|
68
|
+
|
|
69
|
+
# Show help if no subcommand is provided
|
|
70
|
+
cache_parser.set_defaults(func=lambda args: cache_parser.print_help())
|
|
71
|
+
|
|
68
72
|
# Scan subcommand
|
|
69
73
|
scan_parser = cache_subparsers.add_parser("scan", help="Scan cache directory.")
|
|
70
74
|
scan_parser.add_argument(
|
huggingface_hub/cli/hf.py
CHANGED
|
@@ -47,10 +47,6 @@ def main():
|
|
|
47
47
|
# LFS commands (hidden in --help)
|
|
48
48
|
LfsCommands.register_subcommand(commands_parser)
|
|
49
49
|
|
|
50
|
-
# Legacy commands
|
|
51
|
-
|
|
52
|
-
# Experimental
|
|
53
|
-
|
|
54
50
|
# Let's go
|
|
55
51
|
args = parser.parse_args()
|
|
56
52
|
if not hasattr(args, "func"):
|
|
@@ -59,7 +55,8 @@ def main():
|
|
|
59
55
|
|
|
60
56
|
# Run
|
|
61
57
|
service = args.func(args)
|
|
62
|
-
service
|
|
58
|
+
if service is not None:
|
|
59
|
+
service.run()
|
|
63
60
|
|
|
64
61
|
|
|
65
62
|
if __name__ == "__main__":
|
huggingface_hub/cli/jobs.py
CHANGED
|
@@ -58,6 +58,9 @@ class JobsCommands(BaseHuggingfaceCLICommand):
|
|
|
58
58
|
jobs_parser = parser.add_parser("jobs", help="Run and manage Jobs on the Hub.")
|
|
59
59
|
jobs_subparsers = jobs_parser.add_subparsers(help="huggingface.co jobs related commands")
|
|
60
60
|
|
|
61
|
+
# Show help if no subcommand is provided
|
|
62
|
+
jobs_parser.set_defaults(func=lambda args: jobs_parser.print_help())
|
|
63
|
+
|
|
61
64
|
# Register commands
|
|
62
65
|
InspectCommand.register_subcommand(jobs_subparsers)
|
|
63
66
|
LogsCommand.register_subcommand(jobs_subparsers)
|
huggingface_hub/cli/repo.py
CHANGED
|
@@ -43,6 +43,10 @@ class RepoCommands(BaseHuggingfaceCLICommand):
|
|
|
43
43
|
def register_subcommand(parser: _SubParsersAction):
|
|
44
44
|
repo_parser = parser.add_parser("repo", help="Manage repos on the Hub.")
|
|
45
45
|
repo_subparsers = repo_parser.add_subparsers(help="huggingface.co repos related commands")
|
|
46
|
+
|
|
47
|
+
# Show help if no subcommand is provided
|
|
48
|
+
repo_parser.set_defaults(func=lambda args: repo_parser.print_help())
|
|
49
|
+
|
|
46
50
|
# CREATE
|
|
47
51
|
repo_create_parser = repo_subparsers.add_parser("create", help="Create a new repo on huggingface.co")
|
|
48
52
|
repo_create_parser.add_argument(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: huggingface-hub
|
|
3
|
-
Version: 0.34.
|
|
3
|
+
Version: 0.34.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=3BWbuLHQ7NvAfv9C4WFRMK1hgiwDBg-YBbQFRoTaqRw,51837
|
|
2
2
|
huggingface_hub/_commit_api.py,sha256=68HxFnJE2s-QmGZRHQav5kOMTseYV_ZQi04ADaQmZUk,38979
|
|
3
3
|
huggingface_hub/_commit_scheduler.py,sha256=tfIoO1xWHjTJ6qy6VS6HIoymDycFPg0d6pBSZprrU2U,14679
|
|
4
4
|
huggingface_hub/_inference_endpoints.py,sha256=ahmbPcEXsJ_JcMb9TDgdkD8Z2z9uytkFG3_1o6dTm8g,17598
|
|
@@ -30,13 +30,13 @@ huggingface_hub/repocard_data.py,sha256=hr4ReFpEQMNdh_9Dx-L-IJoI1ElHyk-h-8ZRqwVY
|
|
|
30
30
|
huggingface_hub/repository.py,sha256=Lerq3kr7tC-oUdZk5i1CdhAA84ZvYiqjaGR77j2iOyk,54536
|
|
31
31
|
huggingface_hub/cli/__init__.py,sha256=xzX1qgAvrtAX4gP59WrPlvOZFLuzuTgcjvanQvcpgHc,928
|
|
32
32
|
huggingface_hub/cli/_cli_utils.py,sha256=Nt6CjbkYqQQRuh70bUXVA6rZpbZt_Sa1WqBUxjQLu6g,2095
|
|
33
|
-
huggingface_hub/cli/auth.py,sha256=
|
|
34
|
-
huggingface_hub/cli/cache.py,sha256=
|
|
33
|
+
huggingface_hub/cli/auth.py,sha256=BO6sJJcdHhjouMEH5JpUmC0qg3vaukX4I5DtA7ohLes,7296
|
|
34
|
+
huggingface_hub/cli/cache.py,sha256=zPLEWP5MidLElo0FeLvkUjCT0EYlX1pmC-2TkCa8kD0,15871
|
|
35
35
|
huggingface_hub/cli/download.py,sha256=PUpW-nbu6ZAP6P9DpVhliAKSSlxvXWkVh0U2KZoukhQ,7115
|
|
36
|
-
huggingface_hub/cli/hf.py,sha256=
|
|
37
|
-
huggingface_hub/cli/jobs.py,sha256=
|
|
36
|
+
huggingface_hub/cli/hf.py,sha256=SQ73_SXEQnWVJkhKT_6bwNQBHQXGOdI5qqlTTtI0XH0,2328
|
|
37
|
+
huggingface_hub/cli/jobs.py,sha256=_UoqggR7TvLuQmZLHgKSYqJVo2037UEeeAiLOGr5n8c,20591
|
|
38
38
|
huggingface_hub/cli/lfs.py,sha256=J9MkKOGUW6GjBrKs2zZUCOaAGxpatxsEoSbBjuhDJV8,7230
|
|
39
|
-
huggingface_hub/cli/repo.py,sha256=
|
|
39
|
+
huggingface_hub/cli/repo.py,sha256=lNDEZbOpLW8SQVBYDQ1xofw9nJ7M8AUsd2kBIV_m_do,10576
|
|
40
40
|
huggingface_hub/cli/repo_files.py,sha256=L-Ku52l2vZ04GCabp_OhVXqLzE9dsKQqaQKudGzjWg4,4831
|
|
41
41
|
huggingface_hub/cli/system.py,sha256=eLSYME7ywt5Ae3tYQnS43Tai2pR2JLtA1KGImzPt5pM,1707
|
|
42
42
|
huggingface_hub/cli/upload.py,sha256=qOGccIcBYJtodmlQlFyGfV_ZGHYhWlAARr3fxgYLDnE,14349
|
|
@@ -158,9 +158,9 @@ huggingface_hub/utils/insecure_hashlib.py,sha256=iAaepavFZ5Dhfa5n8KozRfQprKmvcjS
|
|
|
158
158
|
huggingface_hub/utils/logging.py,sha256=0A8fF1yh3L9Ka_bCDX2ml4U5Ht0tY8Dr3JcbRvWFuwo,4909
|
|
159
159
|
huggingface_hub/utils/sha.py,sha256=OFnNGCba0sNcT2gUwaVCJnldxlltrHHe0DS_PCpV3C4,2134
|
|
160
160
|
huggingface_hub/utils/tqdm.py,sha256=xAKcyfnNHsZ7L09WuEM5Ew5-MDhiahLACbbN2zMmcLs,10671
|
|
161
|
-
huggingface_hub-0.34.
|
|
162
|
-
huggingface_hub-0.34.
|
|
163
|
-
huggingface_hub-0.34.
|
|
164
|
-
huggingface_hub-0.34.
|
|
165
|
-
huggingface_hub-0.34.
|
|
166
|
-
huggingface_hub-0.34.
|
|
161
|
+
huggingface_hub-0.34.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
162
|
+
huggingface_hub-0.34.1.dist-info/METADATA,sha256=xaTr-pbrzBfbAB1RTLrAXPON2rCp2nJeYcmvA6DGPKM,14699
|
|
163
|
+
huggingface_hub-0.34.1.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
164
|
+
huggingface_hub-0.34.1.dist-info/entry_points.txt,sha256=HIzLhjwPTO7U_ncpW4AkmzAuaadr1ajmYagW5mdb5TM,217
|
|
165
|
+
huggingface_hub-0.34.1.dist-info/top_level.txt,sha256=8KzlQJAY4miUvjAssOAJodqKOw3harNzuiwGQ9qLSSk,16
|
|
166
|
+
huggingface_hub-0.34.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|