huggingface-hub 0.34.4__tar.gz → 1.0.0rc0__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.34.4 → huggingface_hub-1.0.0rc0}/PKG-INFO +2 -5
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/pyproject.toml +22 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/setup.py +15 -20
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/__init__.py +46 -45
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/_commit_api.py +28 -28
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/_commit_scheduler.py +11 -8
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/_inference_endpoints.py +8 -8
- huggingface_hub-1.0.0rc0/src/huggingface_hub/_jobs_api.py +301 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/_login.py +13 -39
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/_oauth.py +8 -8
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/_snapshot_download.py +14 -28
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/_space_api.py +4 -4
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/_tensorboard_logger.py +13 -14
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/_upload_large_folder.py +15 -15
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/_webhooks_payload.py +3 -3
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/_webhooks_server.py +2 -2
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/cli/_cli_utils.py +2 -2
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/cli/auth.py +5 -6
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/cli/cache.py +14 -20
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/cli/download.py +4 -4
- huggingface_hub-1.0.0rc0/src/huggingface_hub/cli/jobs.py +1099 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/cli/lfs.py +4 -4
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/cli/repo.py +7 -7
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/cli/repo_files.py +2 -2
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/cli/upload.py +4 -4
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/cli/upload_large_folder.py +3 -3
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/commands/_cli_utils.py +2 -2
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/commands/delete_cache.py +13 -13
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/commands/download.py +4 -13
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/commands/lfs.py +4 -4
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/commands/repo_files.py +2 -2
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/commands/scan_cache.py +1 -1
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/commands/tag.py +1 -3
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/commands/upload.py +4 -4
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/commands/upload_large_folder.py +3 -3
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/commands/user.py +5 -6
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/community.py +5 -5
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/constants.py +3 -41
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/dataclasses.py +16 -19
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/errors.py +42 -29
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/fastai_utils.py +8 -9
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/file_download.py +153 -252
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/hf_api.py +815 -600
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/hf_file_system.py +98 -62
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/hub_mixin.py +37 -57
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_client.py +177 -325
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_common.py +110 -124
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_generated/_async_client.py +226 -432
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_generated/types/automatic_speech_recognition.py +3 -3
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_generated/types/base.py +10 -7
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_generated/types/chat_completion.py +18 -16
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_generated/types/depth_estimation.py +2 -2
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_generated/types/document_question_answering.py +2 -2
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_generated/types/feature_extraction.py +2 -2
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_generated/types/fill_mask.py +2 -2
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_generated/types/sentence_similarity.py +3 -3
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_generated/types/summarization.py +2 -2
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_generated/types/table_question_answering.py +4 -4
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_generated/types/text2text_generation.py +2 -2
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_generated/types/text_generation.py +10 -10
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_generated/types/text_to_video.py +2 -2
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_generated/types/token_classification.py +2 -2
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_generated/types/translation.py +2 -2
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_generated/types/zero_shot_classification.py +2 -2
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_generated/types/zero_shot_image_classification.py +2 -2
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_generated/types/zero_shot_object_detection.py +1 -3
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_mcp/_cli_hacks.py +3 -3
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_mcp/agent.py +3 -3
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_mcp/cli.py +1 -1
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_mcp/constants.py +2 -3
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_mcp/mcp_client.py +58 -30
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_mcp/types.py +10 -7
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_mcp/utils.py +11 -7
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_providers/__init__.py +2 -2
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_providers/_common.py +49 -25
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_providers/black_forest_labs.py +6 -6
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_providers/cohere.py +3 -3
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_providers/fal_ai.py +25 -25
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_providers/featherless_ai.py +4 -4
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_providers/fireworks_ai.py +3 -3
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_providers/hf_inference.py +28 -20
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_providers/hyperbolic.py +4 -4
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_providers/nebius.py +10 -10
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_providers/novita.py +5 -5
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_providers/nscale.py +4 -4
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_providers/replicate.py +15 -15
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_providers/sambanova.py +6 -6
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_providers/together.py +7 -7
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/lfs.py +20 -31
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/repocard.py +18 -18
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/repocard_data.py +56 -56
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/serialization/__init__.py +0 -1
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/serialization/_base.py +9 -9
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/serialization/_dduf.py +7 -7
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/serialization/_torch.py +28 -28
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/utils/__init__.py +10 -4
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/utils/_auth.py +5 -5
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/utils/_cache_manager.py +31 -31
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/utils/_deprecation.py +1 -1
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/utils/_dotenv.py +3 -3
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/utils/_fixes.py +0 -10
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/utils/_git_credential.py +4 -4
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/utils/_headers.py +7 -29
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/utils/_http.py +366 -208
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/utils/_pagination.py +4 -4
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/utils/_paths.py +5 -5
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/utils/_runtime.py +15 -13
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/utils/_safetensors.py +21 -21
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/utils/_subprocess.py +9 -9
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/utils/_telemetry.py +3 -3
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/utils/_typing.py +25 -5
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/utils/_validators.py +53 -72
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/utils/_xet.py +16 -16
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/utils/_xet_progress_reporting.py +32 -11
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/utils/insecure_hashlib.py +3 -9
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/utils/tqdm.py +3 -3
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub.egg-info/PKG-INFO +2 -5
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub.egg-info/SOURCES.txt +0 -5
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub.egg-info/requires.txt +16 -40
- huggingface_hub-0.34.4/src/huggingface_hub/_jobs_api.py +0 -144
- huggingface_hub-0.34.4/src/huggingface_hub/cli/jobs.py +0 -550
- huggingface_hub-0.34.4/src/huggingface_hub/inference_api.py +0 -217
- huggingface_hub-0.34.4/src/huggingface_hub/keras_mixin.py +0 -500
- huggingface_hub-0.34.4/src/huggingface_hub/repository.py +0 -1477
- huggingface_hub-0.34.4/src/huggingface_hub/serialization/_tensorflow.py +0 -95
- huggingface_hub-0.34.4/src/huggingface_hub/utils/_hf_folder.py +0 -68
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/LICENSE +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/MANIFEST.in +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/README.md +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/setup.cfg +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/_local_folder.py +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/cli/__init__.py +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/cli/hf.py +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/cli/system.py +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/commands/__init__.py +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/commands/env.py +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/commands/huggingface_cli.py +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/commands/repo.py +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/commands/version.py +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/__init__.py +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_generated/__init__.py +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_generated/types/__init__.py +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_generated/types/audio_classification.py +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_generated/types/audio_to_audio.py +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_generated/types/image_classification.py +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_generated/types/image_segmentation.py +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_generated/types/image_to_image.py +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_generated/types/image_to_text.py +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_generated/types/image_to_video.py +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_generated/types/object_detection.py +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_generated/types/question_answering.py +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_generated/types/text_classification.py +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_generated/types/text_to_audio.py +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_generated/types/text_to_image.py +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_generated/types/text_to_speech.py +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_generated/types/video_classification.py +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_generated/types/visual_question_answering.py +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_mcp/__init__.py +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_providers/cerebras.py +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_providers/groq.py +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/inference/_providers/openai.py +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/py.typed +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/templates/datasetcard_template.md +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/templates/modelcard_template.md +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/utils/_cache_assets.py +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/utils/_chunk_utils.py +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/utils/_datetime.py +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/utils/_experimental.py +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/utils/_lfs.py +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/utils/endpoint_helpers.py +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/utils/logging.py +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub/utils/sha.py +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub.egg-info/dependency_links.txt +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/src/huggingface_hub.egg-info/entry_points.txt +0 -0
- {huggingface_hub-0.34.4 → huggingface_hub-1.0.0rc0}/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.0rc0
|
|
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,14 +15,13 @@ 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
26
|
Provides-Extra: cli
|
|
28
27
|
Provides-Extra: inference
|
|
@@ -30,8 +29,6 @@ Provides-Extra: oauth
|
|
|
30
29
|
Provides-Extra: torch
|
|
31
30
|
Provides-Extra: hf_transfer
|
|
32
31
|
Provides-Extra: fastai
|
|
33
|
-
Provides-Extra: tensorflow
|
|
34
|
-
Provides-Extra: tensorflow-testing
|
|
35
32
|
Provides-Extra: hf_xet
|
|
36
33
|
Provides-Extra: mcp
|
|
37
34
|
Provides-Extra: testing
|
|
@@ -1,6 +1,28 @@
|
|
|
1
1
|
[tool.mypy]
|
|
2
2
|
ignore_missing_imports = true
|
|
3
3
|
|
|
4
|
+
[tool.ty]
|
|
5
|
+
[tool.ty.terminal]
|
|
6
|
+
# Do not fail CI on warnings; keep output readable
|
|
7
|
+
error-on-warning = false
|
|
8
|
+
output-format = "concise"
|
|
9
|
+
|
|
10
|
+
[tool.ty.rules]
|
|
11
|
+
# Minimize noise from optional/extra dependencies not installed in CI or local
|
|
12
|
+
unresolved-import = "ignore"
|
|
13
|
+
unresolved-attribute = "ignore"
|
|
14
|
+
|
|
15
|
+
# Be tolerant with framework/typing edge-cases and runtime-validated code paths
|
|
16
|
+
unsupported-base = "ignore"
|
|
17
|
+
possibly-unbound-attribute = "ignore"
|
|
18
|
+
unsupported-operator = "ignore"
|
|
19
|
+
non-subscriptable = "ignore"
|
|
20
|
+
call-non-callable = "ignore"
|
|
21
|
+
|
|
22
|
+
# Loosen strictness a bit on type matching
|
|
23
|
+
missing-argument = "ignore"
|
|
24
|
+
deprecated = "ignore"
|
|
25
|
+
|
|
4
26
|
[tool.pytest.ini_options]
|
|
5
27
|
# Add the specified `OPTS` to the set of command line arguments as if they had
|
|
6
28
|
# been specified by the user.
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import sys
|
|
2
|
+
|
|
1
3
|
from setuptools import find_packages, setup
|
|
2
4
|
|
|
3
5
|
|
|
@@ -17,7 +19,7 @@ install_requires = [
|
|
|
17
19
|
"hf-xet>=1.1.3,<2.0.0; platform_machine=='x86_64' or platform_machine=='amd64' or platform_machine=='arm64' or platform_machine=='aarch64'",
|
|
18
20
|
"packaging>=20.9",
|
|
19
21
|
"pyyaml>=5.1",
|
|
20
|
-
"
|
|
22
|
+
"httpx>=0.23.0, <1",
|
|
21
23
|
"tqdm>=4.42.1",
|
|
22
24
|
"typing-extensions>=3.7.4.3", # to be able to import TypeAlias
|
|
23
25
|
]
|
|
@@ -52,17 +54,6 @@ extras["fastai"] = [
|
|
|
52
54
|
"fastcore>=1.3.27",
|
|
53
55
|
]
|
|
54
56
|
|
|
55
|
-
extras["tensorflow"] = [
|
|
56
|
-
"tensorflow",
|
|
57
|
-
"pydot",
|
|
58
|
-
"graphviz",
|
|
59
|
-
]
|
|
60
|
-
|
|
61
|
-
extras["tensorflow-testing"] = [
|
|
62
|
-
"tensorflow",
|
|
63
|
-
"keras<3.0",
|
|
64
|
-
]
|
|
65
|
-
|
|
66
57
|
extras["hf_xet"] = ["hf-xet>=1.1.2,<2.0.0"]
|
|
67
58
|
|
|
68
59
|
extras["mcp"] = [
|
|
@@ -77,29 +68,34 @@ extras["testing"] = (
|
|
|
77
68
|
+ [
|
|
78
69
|
"jedi",
|
|
79
70
|
"Jinja2",
|
|
80
|
-
"pytest>=8.
|
|
71
|
+
"pytest>=8.4.2", # we need https://github.com/pytest-dev/pytest/pull/12436
|
|
81
72
|
"pytest-cov",
|
|
82
73
|
"pytest-env",
|
|
83
74
|
"pytest-xdist",
|
|
84
75
|
"pytest-vcr", # to mock Inference
|
|
85
76
|
"pytest-asyncio", # for AsyncInferenceClient
|
|
86
|
-
"pytest-rerunfailures", # to rerun flaky tests in CI
|
|
77
|
+
"pytest-rerunfailures<16.0", # to rerun flaky tests in CI
|
|
87
78
|
"pytest-mock",
|
|
88
79
|
"urllib3<2.0", # VCR.py broken with urllib3 2.0 (see https://urllib3.readthedocs.io/en/stable/v2-migration-guide.html)
|
|
89
80
|
"soundfile",
|
|
90
81
|
"Pillow",
|
|
91
|
-
"
|
|
82
|
+
"requests", # for gradio
|
|
92
83
|
"numpy", # for embeddings
|
|
93
84
|
"fastapi", # To build the documentation
|
|
94
85
|
]
|
|
95
86
|
)
|
|
96
87
|
|
|
88
|
+
if sys.version_info >= (3, 10):
|
|
89
|
+
# We need gradio to test webhooks server
|
|
90
|
+
# But gradio 5.0+ only supports python 3.10+ so we don't want to test earlier versions
|
|
91
|
+
extras["testing"].append("gradio>=5.0.0")
|
|
92
|
+
extras["testing"].append("requests") # see https://github.com/gradio-app/gradio/pull/11830
|
|
93
|
+
|
|
97
94
|
# Typing extra dependencies list is duplicated in `.pre-commit-config.yaml`
|
|
98
95
|
# Please make sure to update the list there when adding a new typing dependency.
|
|
99
96
|
extras["typing"] = [
|
|
100
97
|
"typing-extensions>=4.8.0",
|
|
101
98
|
"types-PyYAML",
|
|
102
|
-
"types-requests",
|
|
103
99
|
"types-simplejson",
|
|
104
100
|
"types-toml",
|
|
105
101
|
"types-tqdm",
|
|
@@ -108,9 +104,9 @@ extras["typing"] = [
|
|
|
108
104
|
|
|
109
105
|
extras["quality"] = [
|
|
110
106
|
"ruff>=0.9.0",
|
|
111
|
-
"mypy
|
|
112
|
-
"mypy==1.15.0; python_version>='3.9'",
|
|
107
|
+
"mypy==1.15.0",
|
|
113
108
|
"libcst>=1.4.0",
|
|
109
|
+
"ty",
|
|
114
110
|
]
|
|
115
111
|
|
|
116
112
|
extras["all"] = extras["testing"] + extras["quality"] + extras["typing"]
|
|
@@ -139,7 +135,7 @@ setup(
|
|
|
139
135
|
],
|
|
140
136
|
"fsspec.specs": "hf=huggingface_hub.HfFileSystem",
|
|
141
137
|
},
|
|
142
|
-
python_requires=">=3.
|
|
138
|
+
python_requires=">=3.9.0",
|
|
143
139
|
install_requires=install_requires,
|
|
144
140
|
classifiers=[
|
|
145
141
|
"Intended Audience :: Developers",
|
|
@@ -149,7 +145,6 @@ setup(
|
|
|
149
145
|
"Operating System :: OS Independent",
|
|
150
146
|
"Programming Language :: Python :: 3",
|
|
151
147
|
"Programming Language :: Python :: 3 :: Only",
|
|
152
|
-
"Programming Language :: Python :: 3.8",
|
|
153
148
|
"Programming Language :: Python :: 3.9",
|
|
154
149
|
"Programming Language :: Python :: 3.10",
|
|
155
150
|
"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.rc0"
|
|
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
|
|
@@ -182,6 +182,8 @@ _SUBMOD_ATTRS = {
|
|
|
182
182
|
"create_inference_endpoint_from_catalog",
|
|
183
183
|
"create_pull_request",
|
|
184
184
|
"create_repo",
|
|
185
|
+
"create_scheduled_job",
|
|
186
|
+
"create_scheduled_uv_job",
|
|
185
187
|
"create_tag",
|
|
186
188
|
"create_webhook",
|
|
187
189
|
"dataset_info",
|
|
@@ -192,6 +194,7 @@ _SUBMOD_ATTRS = {
|
|
|
192
194
|
"delete_folder",
|
|
193
195
|
"delete_inference_endpoint",
|
|
194
196
|
"delete_repo",
|
|
197
|
+
"delete_scheduled_job",
|
|
195
198
|
"delete_space_secret",
|
|
196
199
|
"delete_space_storage",
|
|
197
200
|
"delete_space_variable",
|
|
@@ -214,11 +217,11 @@ _SUBMOD_ATTRS = {
|
|
|
214
217
|
"get_safetensors_metadata",
|
|
215
218
|
"get_space_runtime",
|
|
216
219
|
"get_space_variables",
|
|
217
|
-
"get_token_permission",
|
|
218
220
|
"get_user_overview",
|
|
219
221
|
"get_webhook",
|
|
220
222
|
"grant_access",
|
|
221
223
|
"inspect_job",
|
|
224
|
+
"inspect_scheduled_job",
|
|
222
225
|
"list_accepted_access_requests",
|
|
223
226
|
"list_collections",
|
|
224
227
|
"list_datasets",
|
|
@@ -259,6 +262,7 @@ _SUBMOD_ATTRS = {
|
|
|
259
262
|
"request_space_storage",
|
|
260
263
|
"restart_space",
|
|
261
264
|
"resume_inference_endpoint",
|
|
265
|
+
"resume_scheduled_job",
|
|
262
266
|
"revision_exists",
|
|
263
267
|
"run_as_future",
|
|
264
268
|
"run_job",
|
|
@@ -267,12 +271,12 @@ _SUBMOD_ATTRS = {
|
|
|
267
271
|
"set_space_sleep_time",
|
|
268
272
|
"space_info",
|
|
269
273
|
"super_squash_history",
|
|
274
|
+
"suspend_scheduled_job",
|
|
270
275
|
"unlike",
|
|
271
276
|
"update_collection_item",
|
|
272
277
|
"update_collection_metadata",
|
|
273
278
|
"update_inference_endpoint",
|
|
274
279
|
"update_repo_settings",
|
|
275
|
-
"update_repo_visibility",
|
|
276
280
|
"update_webhook",
|
|
277
281
|
"upload_file",
|
|
278
282
|
"upload_folder",
|
|
@@ -465,15 +469,6 @@ _SUBMOD_ATTRS = {
|
|
|
465
469
|
"inference._mcp.mcp_client": [
|
|
466
470
|
"MCPClient",
|
|
467
471
|
],
|
|
468
|
-
"inference_api": [
|
|
469
|
-
"InferenceApi",
|
|
470
|
-
],
|
|
471
|
-
"keras_mixin": [
|
|
472
|
-
"KerasModelHubMixin",
|
|
473
|
-
"from_pretrained_keras",
|
|
474
|
-
"push_to_hub_keras",
|
|
475
|
-
"save_pretrained_keras",
|
|
476
|
-
],
|
|
477
472
|
"repocard": [
|
|
478
473
|
"DatasetCard",
|
|
479
474
|
"ModelCard",
|
|
@@ -491,12 +486,8 @@ _SUBMOD_ATTRS = {
|
|
|
491
486
|
"ModelCardData",
|
|
492
487
|
"SpaceCardData",
|
|
493
488
|
],
|
|
494
|
-
"repository": [
|
|
495
|
-
"Repository",
|
|
496
|
-
],
|
|
497
489
|
"serialization": [
|
|
498
490
|
"StateDictSplit",
|
|
499
|
-
"get_tf_storage_size",
|
|
500
491
|
"get_torch_storage_id",
|
|
501
492
|
"get_torch_storage_size",
|
|
502
493
|
"load_state_dict_from_file",
|
|
@@ -504,7 +495,6 @@ _SUBMOD_ATTRS = {
|
|
|
504
495
|
"save_torch_model",
|
|
505
496
|
"save_torch_state_dict",
|
|
506
497
|
"split_state_dict_into_shards_factory",
|
|
507
|
-
"split_tf_state_dict_into_shards",
|
|
508
498
|
"split_torch_state_dict_into_shards",
|
|
509
499
|
],
|
|
510
500
|
"serialization._dduf": [
|
|
@@ -514,6 +504,8 @@ _SUBMOD_ATTRS = {
|
|
|
514
504
|
"read_dduf_file",
|
|
515
505
|
],
|
|
516
506
|
"utils": [
|
|
507
|
+
"ASYNC_CLIENT_FACTORY_T",
|
|
508
|
+
"CLIENT_FACTORY_T",
|
|
517
509
|
"CacheNotFound",
|
|
518
510
|
"CachedFileInfo",
|
|
519
511
|
"CachedRepoInfo",
|
|
@@ -521,14 +513,19 @@ _SUBMOD_ATTRS = {
|
|
|
521
513
|
"CorruptedCacheException",
|
|
522
514
|
"DeleteCacheStrategy",
|
|
523
515
|
"HFCacheInfo",
|
|
524
|
-
"
|
|
516
|
+
"HfHubAsyncTransport",
|
|
517
|
+
"HfHubTransport",
|
|
525
518
|
"cached_assets_path",
|
|
526
|
-
"
|
|
519
|
+
"close_client",
|
|
527
520
|
"dump_environment_info",
|
|
521
|
+
"get_async_session",
|
|
528
522
|
"get_session",
|
|
529
523
|
"get_token",
|
|
524
|
+
"hf_raise_for_status",
|
|
530
525
|
"logging",
|
|
531
526
|
"scan_cache_dir",
|
|
527
|
+
"set_async_client_factory",
|
|
528
|
+
"set_client_factory",
|
|
532
529
|
],
|
|
533
530
|
}
|
|
534
531
|
|
|
@@ -544,6 +541,7 @@ _SUBMOD_ATTRS = {
|
|
|
544
541
|
# ```
|
|
545
542
|
|
|
546
543
|
__all__ = [
|
|
544
|
+
"ASYNC_CLIENT_FACTORY_T",
|
|
547
545
|
"Agent",
|
|
548
546
|
"AsyncInferenceClient",
|
|
549
547
|
"AudioClassificationInput",
|
|
@@ -558,6 +556,7 @@ __all__ = [
|
|
|
558
556
|
"AutomaticSpeechRecognitionOutput",
|
|
559
557
|
"AutomaticSpeechRecognitionOutputChunk",
|
|
560
558
|
"AutomaticSpeechRecognitionParameters",
|
|
559
|
+
"CLIENT_FACTORY_T",
|
|
561
560
|
"CONFIG_NAME",
|
|
562
561
|
"CacheNotFound",
|
|
563
562
|
"CachedFileInfo",
|
|
@@ -646,7 +645,8 @@ __all__ = [
|
|
|
646
645
|
"HfFileSystemFile",
|
|
647
646
|
"HfFileSystemResolvedPath",
|
|
648
647
|
"HfFileSystemStreamFile",
|
|
649
|
-
"
|
|
648
|
+
"HfHubAsyncTransport",
|
|
649
|
+
"HfHubTransport",
|
|
650
650
|
"ImageClassificationInput",
|
|
651
651
|
"ImageClassificationOutputElement",
|
|
652
652
|
"ImageClassificationOutputTransform",
|
|
@@ -668,7 +668,6 @@ __all__ = [
|
|
|
668
668
|
"ImageToVideoOutput",
|
|
669
669
|
"ImageToVideoParameters",
|
|
670
670
|
"ImageToVideoTargetSize",
|
|
671
|
-
"InferenceApi",
|
|
672
671
|
"InferenceClient",
|
|
673
672
|
"InferenceEndpoint",
|
|
674
673
|
"InferenceEndpointError",
|
|
@@ -680,7 +679,6 @@ __all__ = [
|
|
|
680
679
|
"JobOwner",
|
|
681
680
|
"JobStage",
|
|
682
681
|
"JobStatus",
|
|
683
|
-
"KerasModelHubMixin",
|
|
684
682
|
"MCPClient",
|
|
685
683
|
"ModelCard",
|
|
686
684
|
"ModelCardData",
|
|
@@ -705,7 +703,6 @@ __all__ = [
|
|
|
705
703
|
"REPO_TYPE_SPACE",
|
|
706
704
|
"RepoCard",
|
|
707
705
|
"RepoUrl",
|
|
708
|
-
"Repository",
|
|
709
706
|
"SentenceSimilarityInput",
|
|
710
707
|
"SentenceSimilarityInputData",
|
|
711
708
|
"SpaceCard",
|
|
@@ -818,8 +815,8 @@ __all__ = [
|
|
|
818
815
|
"cancel_access_request",
|
|
819
816
|
"cancel_job",
|
|
820
817
|
"change_discussion_status",
|
|
818
|
+
"close_client",
|
|
821
819
|
"comment_discussion",
|
|
822
|
-
"configure_http_backend",
|
|
823
820
|
"create_branch",
|
|
824
821
|
"create_collection",
|
|
825
822
|
"create_commit",
|
|
@@ -828,6 +825,8 @@ __all__ = [
|
|
|
828
825
|
"create_inference_endpoint_from_catalog",
|
|
829
826
|
"create_pull_request",
|
|
830
827
|
"create_repo",
|
|
828
|
+
"create_scheduled_job",
|
|
829
|
+
"create_scheduled_uv_job",
|
|
831
830
|
"create_tag",
|
|
832
831
|
"create_webhook",
|
|
833
832
|
"dataset_info",
|
|
@@ -838,6 +837,7 @@ __all__ = [
|
|
|
838
837
|
"delete_folder",
|
|
839
838
|
"delete_inference_endpoint",
|
|
840
839
|
"delete_repo",
|
|
840
|
+
"delete_scheduled_job",
|
|
841
841
|
"delete_space_secret",
|
|
842
842
|
"delete_space_storage",
|
|
843
843
|
"delete_space_variable",
|
|
@@ -853,7 +853,7 @@ __all__ = [
|
|
|
853
853
|
"fetch_job_logs",
|
|
854
854
|
"file_exists",
|
|
855
855
|
"from_pretrained_fastai",
|
|
856
|
-
"
|
|
856
|
+
"get_async_session",
|
|
857
857
|
"get_collection",
|
|
858
858
|
"get_dataset_tags",
|
|
859
859
|
"get_discussion_details",
|
|
@@ -867,9 +867,7 @@ __all__ = [
|
|
|
867
867
|
"get_session",
|
|
868
868
|
"get_space_runtime",
|
|
869
869
|
"get_space_variables",
|
|
870
|
-
"get_tf_storage_size",
|
|
871
870
|
"get_token",
|
|
872
|
-
"get_token_permission",
|
|
873
871
|
"get_torch_storage_id",
|
|
874
872
|
"get_torch_storage_size",
|
|
875
873
|
"get_user_overview",
|
|
@@ -877,7 +875,9 @@ __all__ = [
|
|
|
877
875
|
"grant_access",
|
|
878
876
|
"hf_hub_download",
|
|
879
877
|
"hf_hub_url",
|
|
878
|
+
"hf_raise_for_status",
|
|
880
879
|
"inspect_job",
|
|
880
|
+
"inspect_scheduled_job",
|
|
881
881
|
"interpreter_login",
|
|
882
882
|
"list_accepted_access_requests",
|
|
883
883
|
"list_collections",
|
|
@@ -922,7 +922,6 @@ __all__ = [
|
|
|
922
922
|
"permanently_delete_lfs_files",
|
|
923
923
|
"preupload_lfs_files",
|
|
924
924
|
"push_to_hub_fastai",
|
|
925
|
-
"push_to_hub_keras",
|
|
926
925
|
"read_dduf_file",
|
|
927
926
|
"reject_access_request",
|
|
928
927
|
"rename_discussion",
|
|
@@ -933,29 +932,30 @@ __all__ = [
|
|
|
933
932
|
"request_space_storage",
|
|
934
933
|
"restart_space",
|
|
935
934
|
"resume_inference_endpoint",
|
|
935
|
+
"resume_scheduled_job",
|
|
936
936
|
"revision_exists",
|
|
937
937
|
"run_as_future",
|
|
938
938
|
"run_job",
|
|
939
939
|
"run_uv_job",
|
|
940
|
-
"save_pretrained_keras",
|
|
941
940
|
"save_torch_model",
|
|
942
941
|
"save_torch_state_dict",
|
|
943
942
|
"scale_to_zero_inference_endpoint",
|
|
944
943
|
"scan_cache_dir",
|
|
944
|
+
"set_async_client_factory",
|
|
945
|
+
"set_client_factory",
|
|
945
946
|
"set_space_sleep_time",
|
|
946
947
|
"snapshot_download",
|
|
947
948
|
"space_info",
|
|
948
949
|
"split_state_dict_into_shards_factory",
|
|
949
|
-
"split_tf_state_dict_into_shards",
|
|
950
950
|
"split_torch_state_dict_into_shards",
|
|
951
951
|
"super_squash_history",
|
|
952
|
+
"suspend_scheduled_job",
|
|
952
953
|
"try_to_load_from_cache",
|
|
953
954
|
"unlike",
|
|
954
955
|
"update_collection_item",
|
|
955
956
|
"update_collection_metadata",
|
|
956
957
|
"update_inference_endpoint",
|
|
957
958
|
"update_repo_settings",
|
|
958
|
-
"update_repo_visibility",
|
|
959
959
|
"update_webhook",
|
|
960
960
|
"upload_file",
|
|
961
961
|
"upload_folder",
|
|
@@ -1190,6 +1190,8 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1190
1190
|
create_inference_endpoint_from_catalog, # noqa: F401
|
|
1191
1191
|
create_pull_request, # noqa: F401
|
|
1192
1192
|
create_repo, # noqa: F401
|
|
1193
|
+
create_scheduled_job, # noqa: F401
|
|
1194
|
+
create_scheduled_uv_job, # noqa: F401
|
|
1193
1195
|
create_tag, # noqa: F401
|
|
1194
1196
|
create_webhook, # noqa: F401
|
|
1195
1197
|
dataset_info, # noqa: F401
|
|
@@ -1200,6 +1202,7 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1200
1202
|
delete_folder, # noqa: F401
|
|
1201
1203
|
delete_inference_endpoint, # noqa: F401
|
|
1202
1204
|
delete_repo, # noqa: F401
|
|
1205
|
+
delete_scheduled_job, # noqa: F401
|
|
1203
1206
|
delete_space_secret, # noqa: F401
|
|
1204
1207
|
delete_space_storage, # noqa: F401
|
|
1205
1208
|
delete_space_variable, # noqa: F401
|
|
@@ -1222,11 +1225,11 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1222
1225
|
get_safetensors_metadata, # noqa: F401
|
|
1223
1226
|
get_space_runtime, # noqa: F401
|
|
1224
1227
|
get_space_variables, # noqa: F401
|
|
1225
|
-
get_token_permission, # noqa: F401
|
|
1226
1228
|
get_user_overview, # noqa: F401
|
|
1227
1229
|
get_webhook, # noqa: F401
|
|
1228
1230
|
grant_access, # noqa: F401
|
|
1229
1231
|
inspect_job, # noqa: F401
|
|
1232
|
+
inspect_scheduled_job, # noqa: F401
|
|
1230
1233
|
list_accepted_access_requests, # noqa: F401
|
|
1231
1234
|
list_collections, # noqa: F401
|
|
1232
1235
|
list_datasets, # noqa: F401
|
|
@@ -1267,6 +1270,7 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1267
1270
|
request_space_storage, # noqa: F401
|
|
1268
1271
|
restart_space, # noqa: F401
|
|
1269
1272
|
resume_inference_endpoint, # noqa: F401
|
|
1273
|
+
resume_scheduled_job, # noqa: F401
|
|
1270
1274
|
revision_exists, # noqa: F401
|
|
1271
1275
|
run_as_future, # noqa: F401
|
|
1272
1276
|
run_job, # noqa: F401
|
|
@@ -1275,12 +1279,12 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1275
1279
|
set_space_sleep_time, # noqa: F401
|
|
1276
1280
|
space_info, # noqa: F401
|
|
1277
1281
|
super_squash_history, # noqa: F401
|
|
1282
|
+
suspend_scheduled_job, # noqa: F401
|
|
1278
1283
|
unlike, # noqa: F401
|
|
1279
1284
|
update_collection_item, # noqa: F401
|
|
1280
1285
|
update_collection_metadata, # noqa: F401
|
|
1281
1286
|
update_inference_endpoint, # noqa: F401
|
|
1282
1287
|
update_repo_settings, # noqa: F401
|
|
1283
|
-
update_repo_visibility, # noqa: F401
|
|
1284
1288
|
update_webhook, # noqa: F401
|
|
1285
1289
|
upload_file, # noqa: F401
|
|
1286
1290
|
upload_folder, # noqa: F401
|
|
@@ -1467,13 +1471,6 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1467
1471
|
)
|
|
1468
1472
|
from .inference._mcp.agent import Agent # noqa: F401
|
|
1469
1473
|
from .inference._mcp.mcp_client import MCPClient # noqa: F401
|
|
1470
|
-
from .inference_api import InferenceApi # noqa: F401
|
|
1471
|
-
from .keras_mixin import (
|
|
1472
|
-
KerasModelHubMixin, # noqa: F401
|
|
1473
|
-
from_pretrained_keras, # noqa: F401
|
|
1474
|
-
push_to_hub_keras, # noqa: F401
|
|
1475
|
-
save_pretrained_keras, # noqa: F401
|
|
1476
|
-
)
|
|
1477
1474
|
from .repocard import (
|
|
1478
1475
|
DatasetCard, # noqa: F401
|
|
1479
1476
|
ModelCard, # noqa: F401
|
|
@@ -1491,10 +1488,8 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1491
1488
|
ModelCardData, # noqa: F401
|
|
1492
1489
|
SpaceCardData, # noqa: F401
|
|
1493
1490
|
)
|
|
1494
|
-
from .repository import Repository # noqa: F401
|
|
1495
1491
|
from .serialization import (
|
|
1496
1492
|
StateDictSplit, # noqa: F401
|
|
1497
|
-
get_tf_storage_size, # noqa: F401
|
|
1498
1493
|
get_torch_storage_id, # noqa: F401
|
|
1499
1494
|
get_torch_storage_size, # noqa: F401
|
|
1500
1495
|
load_state_dict_from_file, # noqa: F401
|
|
@@ -1502,7 +1497,6 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1502
1497
|
save_torch_model, # noqa: F401
|
|
1503
1498
|
save_torch_state_dict, # noqa: F401
|
|
1504
1499
|
split_state_dict_into_shards_factory, # noqa: F401
|
|
1505
|
-
split_tf_state_dict_into_shards, # noqa: F401
|
|
1506
1500
|
split_torch_state_dict_into_shards, # noqa: F401
|
|
1507
1501
|
)
|
|
1508
1502
|
from .serialization._dduf import (
|
|
@@ -1512,6 +1506,8 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1512
1506
|
read_dduf_file, # noqa: F401
|
|
1513
1507
|
)
|
|
1514
1508
|
from .utils import (
|
|
1509
|
+
ASYNC_CLIENT_FACTORY_T, # noqa: F401
|
|
1510
|
+
CLIENT_FACTORY_T, # noqa: F401
|
|
1515
1511
|
CachedFileInfo, # noqa: F401
|
|
1516
1512
|
CachedRepoInfo, # noqa: F401
|
|
1517
1513
|
CachedRevisionInfo, # noqa: F401
|
|
@@ -1519,12 +1515,17 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1519
1515
|
CorruptedCacheException, # noqa: F401
|
|
1520
1516
|
DeleteCacheStrategy, # noqa: F401
|
|
1521
1517
|
HFCacheInfo, # noqa: F401
|
|
1522
|
-
|
|
1518
|
+
HfHubAsyncTransport, # noqa: F401
|
|
1519
|
+
HfHubTransport, # noqa: F401
|
|
1523
1520
|
cached_assets_path, # noqa: F401
|
|
1524
|
-
|
|
1521
|
+
close_client, # noqa: F401
|
|
1525
1522
|
dump_environment_info, # noqa: F401
|
|
1523
|
+
get_async_session, # noqa: F401
|
|
1526
1524
|
get_session, # noqa: F401
|
|
1527
1525
|
get_token, # noqa: F401
|
|
1526
|
+
hf_raise_for_status, # noqa: F401
|
|
1528
1527
|
logging, # noqa: F401
|
|
1529
1528
|
scan_cache_dir, # noqa: F401
|
|
1529
|
+
set_async_client_factory, # noqa: F401
|
|
1530
|
+
set_client_factory, # noqa: F401
|
|
1530
1531
|
)
|