huggingface-hub 0.36.0__tar.gz → 1.0.0__tar.gz
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-0.36.0 → huggingface_hub-1.0.0}/PKG-INFO +2 -7
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/setup.py +18 -31
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/__init__.py +33 -45
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/_commit_api.py +39 -43
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/_commit_scheduler.py +11 -8
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/_inference_endpoints.py +8 -8
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/_jobs_api.py +20 -20
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/_login.py +17 -43
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/_oauth.py +8 -8
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/_snapshot_download.py +135 -50
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/_space_api.py +4 -4
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/_tensorboard_logger.py +5 -5
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/_upload_large_folder.py +18 -32
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/_webhooks_payload.py +3 -3
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/_webhooks_server.py +2 -2
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/cli/__init__.py +0 -14
- huggingface_hub-1.0.0/src/huggingface_hub/cli/_cli_utils.py +173 -0
- huggingface_hub-1.0.0/src/huggingface_hub/cli/auth.py +147 -0
- huggingface_hub-1.0.0/src/huggingface_hub/cli/cache.py +636 -0
- huggingface_hub-1.0.0/src/huggingface_hub/cli/download.py +189 -0
- huggingface_hub-1.0.0/src/huggingface_hub/cli/hf.py +60 -0
- huggingface_hub-1.0.0/src/huggingface_hub/cli/jobs.py +772 -0
- huggingface_hub-1.0.0/src/huggingface_hub/cli/lfs.py +175 -0
- huggingface_hub-1.0.0/src/huggingface_hub/cli/repo.py +315 -0
- huggingface_hub-1.0.0/src/huggingface_hub/cli/repo_files.py +94 -0
- huggingface_hub-0.36.0/src/huggingface_hub/commands/__init__.py → huggingface_hub-1.0.0/src/huggingface_hub/cli/system.py +17 -11
- huggingface_hub-1.0.0/src/huggingface_hub/cli/upload.py +294 -0
- huggingface_hub-1.0.0/src/huggingface_hub/cli/upload_large_folder.py +117 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/community.py +5 -5
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/constants.py +17 -52
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/dataclasses.py +135 -21
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/errors.py +47 -30
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/fastai_utils.py +8 -9
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/file_download.py +351 -303
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/hf_api.py +398 -570
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/hf_file_system.py +101 -66
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/hub_mixin.py +32 -54
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_client.py +177 -162
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_common.py +38 -54
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_generated/_async_client.py +218 -258
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_generated/types/automatic_speech_recognition.py +3 -3
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_generated/types/base.py +10 -7
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_generated/types/chat_completion.py +16 -16
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_generated/types/depth_estimation.py +2 -2
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_generated/types/document_question_answering.py +2 -2
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_generated/types/feature_extraction.py +2 -2
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_generated/types/fill_mask.py +2 -2
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_generated/types/sentence_similarity.py +3 -3
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_generated/types/summarization.py +2 -2
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_generated/types/table_question_answering.py +4 -4
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_generated/types/text2text_generation.py +2 -2
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_generated/types/text_generation.py +10 -10
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_generated/types/text_to_video.py +2 -2
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_generated/types/token_classification.py +2 -2
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_generated/types/translation.py +2 -2
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_generated/types/zero_shot_classification.py +2 -2
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_generated/types/zero_shot_image_classification.py +2 -2
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_generated/types/zero_shot_object_detection.py +1 -3
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_mcp/agent.py +3 -3
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_mcp/constants.py +1 -2
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_mcp/mcp_client.py +33 -22
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_mcp/types.py +10 -10
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_mcp/utils.py +4 -4
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_providers/__init__.py +12 -4
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_providers/_common.py +62 -24
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_providers/black_forest_labs.py +6 -6
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_providers/cohere.py +3 -3
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_providers/fal_ai.py +25 -25
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_providers/featherless_ai.py +4 -4
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_providers/fireworks_ai.py +3 -3
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_providers/hf_inference.py +13 -13
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_providers/hyperbolic.py +4 -4
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_providers/nebius.py +10 -10
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_providers/novita.py +5 -5
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_providers/nscale.py +4 -4
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_providers/replicate.py +15 -15
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_providers/sambanova.py +6 -6
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_providers/together.py +7 -7
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/lfs.py +21 -94
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/repocard.py +15 -16
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/repocard_data.py +57 -57
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/serialization/__init__.py +0 -1
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/serialization/_base.py +9 -9
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/serialization/_dduf.py +7 -7
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/serialization/_torch.py +28 -28
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/utils/__init__.py +11 -6
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/utils/_auth.py +5 -5
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/utils/_cache_manager.py +49 -74
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/utils/_deprecation.py +1 -1
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/utils/_dotenv.py +3 -3
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/utils/_fixes.py +0 -10
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/utils/_git_credential.py +3 -3
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/utils/_headers.py +7 -29
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/utils/_http.py +371 -208
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/utils/_pagination.py +4 -4
- huggingface_hub-1.0.0/src/huggingface_hub/utils/_parsing.py +98 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/utils/_paths.py +5 -5
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/utils/_runtime.py +59 -23
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/utils/_safetensors.py +21 -21
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/utils/_subprocess.py +9 -9
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/utils/_telemetry.py +3 -3
- huggingface_hub-0.36.0/src/huggingface_hub/cli/_cli_utils.py → huggingface_hub-1.0.0/src/huggingface_hub/utils/_terminal.py +4 -4
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/utils/_typing.py +3 -3
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/utils/_validators.py +53 -72
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/utils/_xet.py +16 -16
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/utils/_xet_progress_reporting.py +1 -1
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/utils/insecure_hashlib.py +3 -9
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/utils/tqdm.py +3 -3
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub.egg-info/PKG-INFO +2 -7
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub.egg-info/SOURCES.txt +2 -20
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub.egg-info/entry_points.txt +0 -1
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub.egg-info/requires.txt +15 -49
- huggingface_hub-0.36.0/src/huggingface_hub/cli/auth.py +0 -213
- huggingface_hub-0.36.0/src/huggingface_hub/cli/cache.py +0 -403
- huggingface_hub-0.36.0/src/huggingface_hub/cli/download.py +0 -181
- huggingface_hub-0.36.0/src/huggingface_hub/cli/hf.py +0 -63
- huggingface_hub-0.36.0/src/huggingface_hub/cli/jobs.py +0 -1100
- huggingface_hub-0.36.0/src/huggingface_hub/cli/lfs.py +0 -198
- huggingface_hub-0.36.0/src/huggingface_hub/cli/repo.py +0 -249
- huggingface_hub-0.36.0/src/huggingface_hub/cli/repo_files.py +0 -128
- huggingface_hub-0.36.0/src/huggingface_hub/cli/system.py +0 -52
- huggingface_hub-0.36.0/src/huggingface_hub/cli/upload.py +0 -316
- huggingface_hub-0.36.0/src/huggingface_hub/cli/upload_large_folder.py +0 -132
- huggingface_hub-0.36.0/src/huggingface_hub/commands/_cli_utils.py +0 -74
- huggingface_hub-0.36.0/src/huggingface_hub/commands/delete_cache.py +0 -476
- huggingface_hub-0.36.0/src/huggingface_hub/commands/download.py +0 -204
- huggingface_hub-0.36.0/src/huggingface_hub/commands/env.py +0 -39
- huggingface_hub-0.36.0/src/huggingface_hub/commands/huggingface_cli.py +0 -65
- huggingface_hub-0.36.0/src/huggingface_hub/commands/lfs.py +0 -200
- huggingface_hub-0.36.0/src/huggingface_hub/commands/repo.py +0 -151
- huggingface_hub-0.36.0/src/huggingface_hub/commands/repo_files.py +0 -132
- huggingface_hub-0.36.0/src/huggingface_hub/commands/scan_cache.py +0 -183
- huggingface_hub-0.36.0/src/huggingface_hub/commands/tag.py +0 -161
- huggingface_hub-0.36.0/src/huggingface_hub/commands/upload.py +0 -318
- huggingface_hub-0.36.0/src/huggingface_hub/commands/upload_large_folder.py +0 -131
- huggingface_hub-0.36.0/src/huggingface_hub/commands/user.py +0 -208
- huggingface_hub-0.36.0/src/huggingface_hub/commands/version.py +0 -40
- huggingface_hub-0.36.0/src/huggingface_hub/inference_api.py +0 -217
- huggingface_hub-0.36.0/src/huggingface_hub/keras_mixin.py +0 -497
- huggingface_hub-0.36.0/src/huggingface_hub/repository.py +0 -1471
- huggingface_hub-0.36.0/src/huggingface_hub/serialization/_tensorflow.py +0 -92
- huggingface_hub-0.36.0/src/huggingface_hub/utils/_hf_folder.py +0 -68
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/LICENSE +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/MANIFEST.in +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/README.md +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/pyproject.toml +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/setup.cfg +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/_local_folder.py +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/__init__.py +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_generated/__init__.py +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_generated/types/__init__.py +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_generated/types/audio_classification.py +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_generated/types/audio_to_audio.py +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_generated/types/image_classification.py +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_generated/types/image_segmentation.py +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_generated/types/image_to_image.py +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_generated/types/image_to_text.py +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_generated/types/image_to_video.py +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_generated/types/object_detection.py +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_generated/types/question_answering.py +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_generated/types/text_classification.py +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_generated/types/text_to_audio.py +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_generated/types/text_to_image.py +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_generated/types/text_to_speech.py +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_generated/types/video_classification.py +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_generated/types/visual_question_answering.py +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_mcp/__init__.py +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_mcp/_cli_hacks.py +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_mcp/cli.py +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_providers/cerebras.py +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_providers/clarifai.py +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_providers/groq.py +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_providers/openai.py +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_providers/publicai.py +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_providers/scaleway.py +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/inference/_providers/zai_org.py +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/py.typed +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/templates/datasetcard_template.md +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/templates/modelcard_template.md +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/utils/_cache_assets.py +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/utils/_chunk_utils.py +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/utils/_datetime.py +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/utils/_experimental.py +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/utils/_lfs.py +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/utils/endpoint_helpers.py +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/utils/logging.py +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub/utils/sha.py +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub.egg-info/dependency_links.txt +0 -0
- {huggingface_hub-0.36.0 → huggingface_hub-1.0.0}/src/huggingface_hub.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: huggingface_hub
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 1.0.0
|
|
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.
|
|
@@ -15,23 +15,18 @@ Classifier: License :: OSI Approved :: Apache Software License
|
|
|
15
15
|
Classifier: Operating System :: OS Independent
|
|
16
16
|
Classifier: Programming Language :: Python :: 3
|
|
17
17
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
19
18
|
Classifier: Programming Language :: Python :: 3.9
|
|
20
19
|
Classifier: Programming Language :: Python :: 3.10
|
|
21
20
|
Classifier: Programming Language :: Python :: 3.11
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.12
|
|
23
22
|
Classifier: Programming Language :: Python :: 3.13
|
|
24
23
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
25
|
-
Requires-Python: >=3.
|
|
24
|
+
Requires-Python: >=3.9.0
|
|
26
25
|
Description-Content-Type: text/markdown
|
|
27
|
-
Provides-Extra: cli
|
|
28
26
|
Provides-Extra: inference
|
|
29
27
|
Provides-Extra: oauth
|
|
30
28
|
Provides-Extra: torch
|
|
31
|
-
Provides-Extra: hf_transfer
|
|
32
29
|
Provides-Extra: fastai
|
|
33
|
-
Provides-Extra: tensorflow
|
|
34
|
-
Provides-Extra: tensorflow-testing
|
|
35
30
|
Provides-Extra: hf_xet
|
|
36
31
|
Provides-Extra: mcp
|
|
37
32
|
Provides-Extra: testing
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import sys
|
|
2
|
+
|
|
1
3
|
from setuptools import find_packages, setup
|
|
2
4
|
|
|
3
5
|
|
|
@@ -14,20 +16,18 @@ def get_version() -> str:
|
|
|
14
16
|
install_requires = [
|
|
15
17
|
"filelock",
|
|
16
18
|
"fsspec>=2023.5.0",
|
|
17
|
-
"hf-xet>=1.
|
|
19
|
+
"hf-xet>=1.2.0,<2.0.0; platform_machine=='x86_64' or platform_machine=='amd64' or platform_machine=='AMD64' or platform_machine=='arm64' or platform_machine=='aarch64'",
|
|
20
|
+
"httpx>=0.23.0, <1",
|
|
18
21
|
"packaging>=20.9",
|
|
19
22
|
"pyyaml>=5.1",
|
|
20
|
-
"
|
|
23
|
+
"shellingham",
|
|
21
24
|
"tqdm>=4.42.1",
|
|
25
|
+
"typer-slim",
|
|
22
26
|
"typing-extensions>=3.7.4.3", # to be able to import TypeAlias
|
|
23
27
|
]
|
|
24
28
|
|
|
25
29
|
extras = {}
|
|
26
30
|
|
|
27
|
-
extras["cli"] = [
|
|
28
|
-
"InquirerPy==0.3.4", # Note: installs `prompt-toolkit` in the background
|
|
29
|
-
]
|
|
30
|
-
|
|
31
31
|
extras["inference"] = [
|
|
32
32
|
"aiohttp", # for AsyncInferenceClient
|
|
33
33
|
]
|
|
@@ -43,27 +43,13 @@ extras["torch"] = [
|
|
|
43
43
|
"torch",
|
|
44
44
|
"safetensors[torch]",
|
|
45
45
|
]
|
|
46
|
-
extras["hf_transfer"] = [
|
|
47
|
-
"hf_transfer>=0.1.4", # Pin for progress bars
|
|
48
|
-
]
|
|
49
46
|
extras["fastai"] = [
|
|
50
47
|
"toml",
|
|
51
48
|
"fastai>=2.4",
|
|
52
49
|
"fastcore>=1.3.27",
|
|
53
50
|
]
|
|
54
51
|
|
|
55
|
-
extras["
|
|
56
|
-
"tensorflow",
|
|
57
|
-
"pydot",
|
|
58
|
-
"graphviz",
|
|
59
|
-
]
|
|
60
|
-
|
|
61
|
-
extras["tensorflow-testing"] = [
|
|
62
|
-
"tensorflow",
|
|
63
|
-
"keras<3.0",
|
|
64
|
-
]
|
|
65
|
-
|
|
66
|
-
extras["hf_xet"] = ["hf-xet>=1.1.2,<2.0.0"]
|
|
52
|
+
extras["hf_xet"] = ["hf-xet>=1.1.3,<2.0.0"]
|
|
67
53
|
|
|
68
54
|
extras["mcp"] = [
|
|
69
55
|
"mcp>=1.8.0",
|
|
@@ -71,13 +57,12 @@ extras["mcp"] = [
|
|
|
71
57
|
] + extras["inference"]
|
|
72
58
|
|
|
73
59
|
extras["testing"] = (
|
|
74
|
-
extras["
|
|
75
|
-
+ extras["inference"]
|
|
60
|
+
extras["inference"]
|
|
76
61
|
+ extras["oauth"]
|
|
77
62
|
+ [
|
|
78
63
|
"jedi",
|
|
79
64
|
"Jinja2",
|
|
80
|
-
"pytest>=8.
|
|
65
|
+
"pytest>=8.4.2", # we need https://github.com/pytest-dev/pytest/pull/12436
|
|
81
66
|
"pytest-cov",
|
|
82
67
|
"pytest-env",
|
|
83
68
|
"pytest-xdist",
|
|
@@ -88,18 +73,23 @@ extras["testing"] = (
|
|
|
88
73
|
"urllib3<2.0", # VCR.py broken with urllib3 2.0 (see https://urllib3.readthedocs.io/en/stable/v2-migration-guide.html)
|
|
89
74
|
"soundfile",
|
|
90
75
|
"Pillow",
|
|
91
|
-
"
|
|
76
|
+
"requests", # for gradio
|
|
92
77
|
"numpy", # for embeddings
|
|
93
78
|
"fastapi", # To build the documentation
|
|
94
79
|
]
|
|
95
80
|
)
|
|
96
81
|
|
|
82
|
+
if sys.version_info >= (3, 10):
|
|
83
|
+
# We need gradio to test webhooks server
|
|
84
|
+
# But gradio 5.0+ only supports python 3.10+ so we don't want to test earlier versions
|
|
85
|
+
extras["testing"].append("gradio>=5.0.0")
|
|
86
|
+
extras["testing"].append("requests") # see https://github.com/gradio-app/gradio/pull/11830
|
|
87
|
+
|
|
97
88
|
# Typing extra dependencies list is duplicated in `.pre-commit-config.yaml`
|
|
98
89
|
# Please make sure to update the list there when adding a new typing dependency.
|
|
99
90
|
extras["typing"] = [
|
|
100
91
|
"typing-extensions>=4.8.0",
|
|
101
92
|
"types-PyYAML",
|
|
102
|
-
"types-requests",
|
|
103
93
|
"types-simplejson",
|
|
104
94
|
"types-toml",
|
|
105
95
|
"types-tqdm",
|
|
@@ -108,8 +98,7 @@ extras["typing"] = [
|
|
|
108
98
|
|
|
109
99
|
extras["quality"] = [
|
|
110
100
|
"ruff>=0.9.0",
|
|
111
|
-
"mypy
|
|
112
|
-
"mypy==1.15.0; python_version>='3.9'",
|
|
101
|
+
"mypy==1.15.0",
|
|
113
102
|
"libcst>=1.4.0",
|
|
114
103
|
"ty",
|
|
115
104
|
]
|
|
@@ -134,13 +123,12 @@ setup(
|
|
|
134
123
|
extras_require=extras,
|
|
135
124
|
entry_points={
|
|
136
125
|
"console_scripts": [
|
|
137
|
-
"huggingface-cli=huggingface_hub.commands.huggingface_cli:main",
|
|
138
126
|
"hf=huggingface_hub.cli.hf:main",
|
|
139
127
|
"tiny-agents=huggingface_hub.inference._mcp.cli:app",
|
|
140
128
|
],
|
|
141
129
|
"fsspec.specs": "hf=huggingface_hub.HfFileSystem",
|
|
142
130
|
},
|
|
143
|
-
python_requires=">=3.
|
|
131
|
+
python_requires=">=3.9.0",
|
|
144
132
|
install_requires=install_requires,
|
|
145
133
|
classifiers=[
|
|
146
134
|
"Intended Audience :: Developers",
|
|
@@ -150,7 +138,6 @@ setup(
|
|
|
150
138
|
"Operating System :: OS Independent",
|
|
151
139
|
"Programming Language :: Python :: 3",
|
|
152
140
|
"Programming Language :: Python :: 3 :: Only",
|
|
153
|
-
"Programming Language :: Python :: 3.8",
|
|
154
141
|
"Programming Language :: Python :: 3.9",
|
|
155
142
|
"Programming Language :: Python :: 3.10",
|
|
156
143
|
"Programming Language :: Python :: 3.11",
|
|
@@ -46,7 +46,7 @@ import sys
|
|
|
46
46
|
from typing import TYPE_CHECKING
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
__version__ = "0.
|
|
49
|
+
__version__ = "1.0.0"
|
|
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",
|
|
@@ -138,6 +141,7 @@ _SUBMOD_ATTRS = {
|
|
|
138
141
|
"push_to_hub_fastai",
|
|
139
142
|
],
|
|
140
143
|
"file_download": [
|
|
144
|
+
"DryRunFileInfo",
|
|
141
145
|
"HfFileMetadata",
|
|
142
146
|
"_CACHED_NO_EXIST",
|
|
143
147
|
"get_hf_file_metadata",
|
|
@@ -219,7 +223,6 @@ _SUBMOD_ATTRS = {
|
|
|
219
223
|
"get_safetensors_metadata",
|
|
220
224
|
"get_space_runtime",
|
|
221
225
|
"get_space_variables",
|
|
222
|
-
"get_token_permission",
|
|
223
226
|
"get_user_overview",
|
|
224
227
|
"get_webhook",
|
|
225
228
|
"grant_access",
|
|
@@ -234,6 +237,7 @@ _SUBMOD_ATTRS = {
|
|
|
234
237
|
"list_lfs_files",
|
|
235
238
|
"list_liked_repos",
|
|
236
239
|
"list_models",
|
|
240
|
+
"list_organization_followers",
|
|
237
241
|
"list_organization_members",
|
|
238
242
|
"list_papers",
|
|
239
243
|
"list_pending_access_requests",
|
|
@@ -280,7 +284,6 @@ _SUBMOD_ATTRS = {
|
|
|
280
284
|
"update_collection_metadata",
|
|
281
285
|
"update_inference_endpoint",
|
|
282
286
|
"update_repo_settings",
|
|
283
|
-
"update_repo_visibility",
|
|
284
287
|
"update_webhook",
|
|
285
288
|
"upload_file",
|
|
286
289
|
"upload_folder",
|
|
@@ -473,15 +476,6 @@ _SUBMOD_ATTRS = {
|
|
|
473
476
|
"inference._mcp.mcp_client": [
|
|
474
477
|
"MCPClient",
|
|
475
478
|
],
|
|
476
|
-
"inference_api": [
|
|
477
|
-
"InferenceApi",
|
|
478
|
-
],
|
|
479
|
-
"keras_mixin": [
|
|
480
|
-
"KerasModelHubMixin",
|
|
481
|
-
"from_pretrained_keras",
|
|
482
|
-
"push_to_hub_keras",
|
|
483
|
-
"save_pretrained_keras",
|
|
484
|
-
],
|
|
485
479
|
"repocard": [
|
|
486
480
|
"DatasetCard",
|
|
487
481
|
"ModelCard",
|
|
@@ -499,12 +493,8 @@ _SUBMOD_ATTRS = {
|
|
|
499
493
|
"ModelCardData",
|
|
500
494
|
"SpaceCardData",
|
|
501
495
|
],
|
|
502
|
-
"repository": [
|
|
503
|
-
"Repository",
|
|
504
|
-
],
|
|
505
496
|
"serialization": [
|
|
506
497
|
"StateDictSplit",
|
|
507
|
-
"get_tf_storage_size",
|
|
508
498
|
"get_torch_storage_id",
|
|
509
499
|
"get_torch_storage_size",
|
|
510
500
|
"load_state_dict_from_file",
|
|
@@ -512,7 +502,6 @@ _SUBMOD_ATTRS = {
|
|
|
512
502
|
"save_torch_model",
|
|
513
503
|
"save_torch_state_dict",
|
|
514
504
|
"split_state_dict_into_shards_factory",
|
|
515
|
-
"split_tf_state_dict_into_shards",
|
|
516
505
|
"split_torch_state_dict_into_shards",
|
|
517
506
|
],
|
|
518
507
|
"serialization._dduf": [
|
|
@@ -522,6 +511,8 @@ _SUBMOD_ATTRS = {
|
|
|
522
511
|
"read_dduf_file",
|
|
523
512
|
],
|
|
524
513
|
"utils": [
|
|
514
|
+
"ASYNC_CLIENT_FACTORY_T",
|
|
515
|
+
"CLIENT_FACTORY_T",
|
|
525
516
|
"CacheNotFound",
|
|
526
517
|
"CachedFileInfo",
|
|
527
518
|
"CachedRepoInfo",
|
|
@@ -529,14 +520,17 @@ _SUBMOD_ATTRS = {
|
|
|
529
520
|
"CorruptedCacheException",
|
|
530
521
|
"DeleteCacheStrategy",
|
|
531
522
|
"HFCacheInfo",
|
|
532
|
-
"HfFolder",
|
|
533
523
|
"cached_assets_path",
|
|
534
|
-
"
|
|
524
|
+
"close_session",
|
|
535
525
|
"dump_environment_info",
|
|
526
|
+
"get_async_session",
|
|
536
527
|
"get_session",
|
|
537
528
|
"get_token",
|
|
529
|
+
"hf_raise_for_status",
|
|
538
530
|
"logging",
|
|
539
531
|
"scan_cache_dir",
|
|
532
|
+
"set_async_client_factory",
|
|
533
|
+
"set_client_factory",
|
|
540
534
|
],
|
|
541
535
|
}
|
|
542
536
|
|
|
@@ -552,6 +546,7 @@ _SUBMOD_ATTRS = {
|
|
|
552
546
|
# ```
|
|
553
547
|
|
|
554
548
|
__all__ = [
|
|
549
|
+
"ASYNC_CLIENT_FACTORY_T",
|
|
555
550
|
"Agent",
|
|
556
551
|
"AsyncInferenceClient",
|
|
557
552
|
"AudioClassificationInput",
|
|
@@ -566,6 +561,7 @@ __all__ = [
|
|
|
566
561
|
"AutomaticSpeechRecognitionOutput",
|
|
567
562
|
"AutomaticSpeechRecognitionOutputChunk",
|
|
568
563
|
"AutomaticSpeechRecognitionParameters",
|
|
564
|
+
"CLIENT_FACTORY_T",
|
|
569
565
|
"CONFIG_NAME",
|
|
570
566
|
"CacheNotFound",
|
|
571
567
|
"CachedFileInfo",
|
|
@@ -634,6 +630,7 @@ __all__ = [
|
|
|
634
630
|
"DocumentQuestionAnsweringInputData",
|
|
635
631
|
"DocumentQuestionAnsweringOutputElement",
|
|
636
632
|
"DocumentQuestionAnsweringParameters",
|
|
633
|
+
"DryRunFileInfo",
|
|
637
634
|
"EvalResult",
|
|
638
635
|
"FLAX_WEIGHTS_NAME",
|
|
639
636
|
"FeatureExtractionInput",
|
|
@@ -654,7 +651,6 @@ __all__ = [
|
|
|
654
651
|
"HfFileSystemFile",
|
|
655
652
|
"HfFileSystemResolvedPath",
|
|
656
653
|
"HfFileSystemStreamFile",
|
|
657
|
-
"HfFolder",
|
|
658
654
|
"ImageClassificationInput",
|
|
659
655
|
"ImageClassificationOutputElement",
|
|
660
656
|
"ImageClassificationOutputTransform",
|
|
@@ -676,7 +672,6 @@ __all__ = [
|
|
|
676
672
|
"ImageToVideoOutput",
|
|
677
673
|
"ImageToVideoParameters",
|
|
678
674
|
"ImageToVideoTargetSize",
|
|
679
|
-
"InferenceApi",
|
|
680
675
|
"InferenceClient",
|
|
681
676
|
"InferenceEndpoint",
|
|
682
677
|
"InferenceEndpointError",
|
|
@@ -688,7 +683,6 @@ __all__ = [
|
|
|
688
683
|
"JobOwner",
|
|
689
684
|
"JobStage",
|
|
690
685
|
"JobStatus",
|
|
691
|
-
"KerasModelHubMixin",
|
|
692
686
|
"MCPClient",
|
|
693
687
|
"ModelCard",
|
|
694
688
|
"ModelCardData",
|
|
@@ -714,7 +708,6 @@ __all__ = [
|
|
|
714
708
|
"REPO_TYPE_SPACE",
|
|
715
709
|
"RepoCard",
|
|
716
710
|
"RepoUrl",
|
|
717
|
-
"Repository",
|
|
718
711
|
"SentenceSimilarityInput",
|
|
719
712
|
"SentenceSimilarityInputData",
|
|
720
713
|
"SpaceCard",
|
|
@@ -827,8 +820,8 @@ __all__ = [
|
|
|
827
820
|
"cancel_access_request",
|
|
828
821
|
"cancel_job",
|
|
829
822
|
"change_discussion_status",
|
|
823
|
+
"close_session",
|
|
830
824
|
"comment_discussion",
|
|
831
|
-
"configure_http_backend",
|
|
832
825
|
"create_branch",
|
|
833
826
|
"create_collection",
|
|
834
827
|
"create_commit",
|
|
@@ -865,7 +858,7 @@ __all__ = [
|
|
|
865
858
|
"fetch_job_logs",
|
|
866
859
|
"file_exists",
|
|
867
860
|
"from_pretrained_fastai",
|
|
868
|
-
"
|
|
861
|
+
"get_async_session",
|
|
869
862
|
"get_collection",
|
|
870
863
|
"get_dataset_tags",
|
|
871
864
|
"get_discussion_details",
|
|
@@ -880,9 +873,7 @@ __all__ = [
|
|
|
880
873
|
"get_session",
|
|
881
874
|
"get_space_runtime",
|
|
882
875
|
"get_space_variables",
|
|
883
|
-
"get_tf_storage_size",
|
|
884
876
|
"get_token",
|
|
885
|
-
"get_token_permission",
|
|
886
877
|
"get_torch_storage_id",
|
|
887
878
|
"get_torch_storage_size",
|
|
888
879
|
"get_user_overview",
|
|
@@ -890,6 +881,7 @@ __all__ = [
|
|
|
890
881
|
"grant_access",
|
|
891
882
|
"hf_hub_download",
|
|
892
883
|
"hf_hub_url",
|
|
884
|
+
"hf_raise_for_status",
|
|
893
885
|
"inspect_job",
|
|
894
886
|
"inspect_scheduled_job",
|
|
895
887
|
"interpreter_login",
|
|
@@ -902,6 +894,7 @@ __all__ = [
|
|
|
902
894
|
"list_lfs_files",
|
|
903
895
|
"list_liked_repos",
|
|
904
896
|
"list_models",
|
|
897
|
+
"list_organization_followers",
|
|
905
898
|
"list_organization_members",
|
|
906
899
|
"list_papers",
|
|
907
900
|
"list_pending_access_requests",
|
|
@@ -936,7 +929,6 @@ __all__ = [
|
|
|
936
929
|
"permanently_delete_lfs_files",
|
|
937
930
|
"preupload_lfs_files",
|
|
938
931
|
"push_to_hub_fastai",
|
|
939
|
-
"push_to_hub_keras",
|
|
940
932
|
"read_dduf_file",
|
|
941
933
|
"reject_access_request",
|
|
942
934
|
"rename_discussion",
|
|
@@ -952,26 +944,26 @@ __all__ = [
|
|
|
952
944
|
"run_as_future",
|
|
953
945
|
"run_job",
|
|
954
946
|
"run_uv_job",
|
|
955
|
-
"save_pretrained_keras",
|
|
956
947
|
"save_torch_model",
|
|
957
948
|
"save_torch_state_dict",
|
|
958
949
|
"scale_to_zero_inference_endpoint",
|
|
959
950
|
"scan_cache_dir",
|
|
951
|
+
"set_async_client_factory",
|
|
952
|
+
"set_client_factory",
|
|
960
953
|
"set_space_sleep_time",
|
|
961
954
|
"snapshot_download",
|
|
962
955
|
"space_info",
|
|
963
956
|
"split_state_dict_into_shards_factory",
|
|
964
|
-
"split_tf_state_dict_into_shards",
|
|
965
957
|
"split_torch_state_dict_into_shards",
|
|
966
958
|
"super_squash_history",
|
|
967
959
|
"suspend_scheduled_job",
|
|
968
960
|
"try_to_load_from_cache",
|
|
961
|
+
"typer_factory",
|
|
969
962
|
"unlike",
|
|
970
963
|
"update_collection_item",
|
|
971
964
|
"update_collection_metadata",
|
|
972
965
|
"update_inference_endpoint",
|
|
973
966
|
"update_repo_settings",
|
|
974
|
-
"update_repo_visibility",
|
|
975
967
|
"update_webhook",
|
|
976
968
|
"upload_file",
|
|
977
969
|
"upload_folder",
|
|
@@ -1135,6 +1127,7 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1135
1127
|
WebhooksServer, # noqa: F401
|
|
1136
1128
|
webhook_endpoint, # noqa: F401
|
|
1137
1129
|
)
|
|
1130
|
+
from .cli._cli_utils import typer_factory # noqa: F401
|
|
1138
1131
|
from .community import (
|
|
1139
1132
|
Discussion, # noqa: F401
|
|
1140
1133
|
DiscussionComment, # noqa: F401
|
|
@@ -1163,6 +1156,7 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1163
1156
|
)
|
|
1164
1157
|
from .file_download import (
|
|
1165
1158
|
_CACHED_NO_EXIST, # noqa: F401
|
|
1159
|
+
DryRunFileInfo, # noqa: F401
|
|
1166
1160
|
HfFileMetadata, # noqa: F401
|
|
1167
1161
|
get_hf_file_metadata, # noqa: F401
|
|
1168
1162
|
hf_hub_download, # noqa: F401
|
|
@@ -1243,7 +1237,6 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1243
1237
|
get_safetensors_metadata, # noqa: F401
|
|
1244
1238
|
get_space_runtime, # noqa: F401
|
|
1245
1239
|
get_space_variables, # noqa: F401
|
|
1246
|
-
get_token_permission, # noqa: F401
|
|
1247
1240
|
get_user_overview, # noqa: F401
|
|
1248
1241
|
get_webhook, # noqa: F401
|
|
1249
1242
|
grant_access, # noqa: F401
|
|
@@ -1258,6 +1251,7 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1258
1251
|
list_lfs_files, # noqa: F401
|
|
1259
1252
|
list_liked_repos, # noqa: F401
|
|
1260
1253
|
list_models, # noqa: F401
|
|
1254
|
+
list_organization_followers, # noqa: F401
|
|
1261
1255
|
list_organization_members, # noqa: F401
|
|
1262
1256
|
list_papers, # noqa: F401
|
|
1263
1257
|
list_pending_access_requests, # noqa: F401
|
|
@@ -1304,7 +1298,6 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1304
1298
|
update_collection_metadata, # noqa: F401
|
|
1305
1299
|
update_inference_endpoint, # noqa: F401
|
|
1306
1300
|
update_repo_settings, # noqa: F401
|
|
1307
|
-
update_repo_visibility, # noqa: F401
|
|
1308
1301
|
update_webhook, # noqa: F401
|
|
1309
1302
|
upload_file, # noqa: F401
|
|
1310
1303
|
upload_folder, # noqa: F401
|
|
@@ -1491,13 +1484,6 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1491
1484
|
)
|
|
1492
1485
|
from .inference._mcp.agent import Agent # noqa: F401
|
|
1493
1486
|
from .inference._mcp.mcp_client import MCPClient # noqa: F401
|
|
1494
|
-
from .inference_api import InferenceApi # noqa: F401
|
|
1495
|
-
from .keras_mixin import (
|
|
1496
|
-
KerasModelHubMixin, # noqa: F401
|
|
1497
|
-
from_pretrained_keras, # noqa: F401
|
|
1498
|
-
push_to_hub_keras, # noqa: F401
|
|
1499
|
-
save_pretrained_keras, # noqa: F401
|
|
1500
|
-
)
|
|
1501
1487
|
from .repocard import (
|
|
1502
1488
|
DatasetCard, # noqa: F401
|
|
1503
1489
|
ModelCard, # noqa: F401
|
|
@@ -1515,10 +1501,8 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1515
1501
|
ModelCardData, # noqa: F401
|
|
1516
1502
|
SpaceCardData, # noqa: F401
|
|
1517
1503
|
)
|
|
1518
|
-
from .repository import Repository # noqa: F401
|
|
1519
1504
|
from .serialization import (
|
|
1520
1505
|
StateDictSplit, # noqa: F401
|
|
1521
|
-
get_tf_storage_size, # noqa: F401
|
|
1522
1506
|
get_torch_storage_id, # noqa: F401
|
|
1523
1507
|
get_torch_storage_size, # noqa: F401
|
|
1524
1508
|
load_state_dict_from_file, # noqa: F401
|
|
@@ -1526,7 +1510,6 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1526
1510
|
save_torch_model, # noqa: F401
|
|
1527
1511
|
save_torch_state_dict, # noqa: F401
|
|
1528
1512
|
split_state_dict_into_shards_factory, # noqa: F401
|
|
1529
|
-
split_tf_state_dict_into_shards, # noqa: F401
|
|
1530
1513
|
split_torch_state_dict_into_shards, # noqa: F401
|
|
1531
1514
|
)
|
|
1532
1515
|
from .serialization._dduf import (
|
|
@@ -1536,6 +1519,8 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1536
1519
|
read_dduf_file, # noqa: F401
|
|
1537
1520
|
)
|
|
1538
1521
|
from .utils import (
|
|
1522
|
+
ASYNC_CLIENT_FACTORY_T, # noqa: F401
|
|
1523
|
+
CLIENT_FACTORY_T, # noqa: F401
|
|
1539
1524
|
CachedFileInfo, # noqa: F401
|
|
1540
1525
|
CachedRepoInfo, # noqa: F401
|
|
1541
1526
|
CachedRevisionInfo, # noqa: F401
|
|
@@ -1543,12 +1528,15 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1543
1528
|
CorruptedCacheException, # noqa: F401
|
|
1544
1529
|
DeleteCacheStrategy, # noqa: F401
|
|
1545
1530
|
HFCacheInfo, # noqa: F401
|
|
1546
|
-
HfFolder, # noqa: F401
|
|
1547
1531
|
cached_assets_path, # noqa: F401
|
|
1548
|
-
|
|
1532
|
+
close_session, # noqa: F401
|
|
1549
1533
|
dump_environment_info, # noqa: F401
|
|
1534
|
+
get_async_session, # noqa: F401
|
|
1550
1535
|
get_session, # noqa: F401
|
|
1551
1536
|
get_token, # noqa: F401
|
|
1537
|
+
hf_raise_for_status, # noqa: F401
|
|
1552
1538
|
logging, # noqa: F401
|
|
1553
1539
|
scan_cache_dir, # noqa: F401
|
|
1540
|
+
set_async_client_factory, # noqa: F401
|
|
1541
|
+
set_client_factory, # noqa: F401
|
|
1554
1542
|
)
|