huggingface-hub 1.0.0rc6__tar.gz → 1.0.0rc7__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.

Files changed (160) hide show
  1. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/PKG-INFO +1 -3
  2. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/pyproject.toml +2 -1
  3. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/setup.py +4 -12
  4. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/__init__.py +7 -1
  5. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/_commit_api.py +1 -5
  6. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/_jobs_api.py +1 -1
  7. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/_login.py +3 -3
  8. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/_snapshot_download.py +4 -3
  9. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/_upload_large_folder.py +2 -15
  10. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/_webhooks_server.py +1 -1
  11. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/cli/_cli_utils.py +1 -1
  12. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/cli/auth.py +0 -20
  13. huggingface_hub-1.0.0rc7/src/huggingface_hub/cli/cache.py +636 -0
  14. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/cli/download.py +2 -2
  15. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/cli/repo.py +0 -7
  16. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/cli/upload.py +0 -8
  17. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/community.py +16 -8
  18. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/constants.py +10 -11
  19. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/file_download.py +9 -61
  20. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/hf_api.py +170 -126
  21. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/hf_file_system.py +31 -6
  22. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_client.py +1 -1
  23. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/_async_client.py +1 -1
  24. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/__init__.py +15 -2
  25. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/_common.py +39 -0
  26. huggingface_hub-1.0.0rc7/src/huggingface_hub/inference/_providers/clarifai.py +13 -0
  27. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/lfs.py +3 -65
  28. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/serialization/_torch.py +1 -1
  29. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/__init__.py +0 -2
  30. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_cache_manager.py +17 -42
  31. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_http.py +25 -3
  32. huggingface_hub-1.0.0rc7/src/huggingface_hub/utils/_parsing.py +98 -0
  33. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_runtime.py +1 -14
  34. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub.egg-info/PKG-INFO +1 -3
  35. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub.egg-info/SOURCES.txt +2 -0
  36. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub.egg-info/requires.txt +3 -15
  37. huggingface_hub-1.0.0rc6/src/huggingface_hub/cli/cache.py +0 -379
  38. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/LICENSE +0 -0
  39. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/MANIFEST.in +0 -0
  40. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/README.md +0 -0
  41. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/setup.cfg +0 -0
  42. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/_commit_scheduler.py +0 -0
  43. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/_inference_endpoints.py +0 -0
  44. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/_local_folder.py +0 -0
  45. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/_oauth.py +0 -0
  46. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/_space_api.py +0 -0
  47. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/_tensorboard_logger.py +0 -0
  48. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/_webhooks_payload.py +0 -0
  49. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/cli/__init__.py +0 -0
  50. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/cli/hf.py +0 -0
  51. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/cli/jobs.py +0 -0
  52. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/cli/lfs.py +0 -0
  53. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/cli/repo_files.py +0 -0
  54. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/cli/system.py +0 -0
  55. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/cli/upload_large_folder.py +0 -0
  56. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/dataclasses.py +0 -0
  57. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/errors.py +0 -0
  58. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/fastai_utils.py +0 -0
  59. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/hub_mixin.py +0 -0
  60. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/__init__.py +0 -0
  61. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_common.py +0 -0
  62. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/__init__.py +0 -0
  63. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/__init__.py +0 -0
  64. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/audio_classification.py +0 -0
  65. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/audio_to_audio.py +0 -0
  66. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/automatic_speech_recognition.py +0 -0
  67. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/base.py +0 -0
  68. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/chat_completion.py +0 -0
  69. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/depth_estimation.py +0 -0
  70. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/document_question_answering.py +0 -0
  71. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/feature_extraction.py +0 -0
  72. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/fill_mask.py +0 -0
  73. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/image_classification.py +0 -0
  74. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/image_segmentation.py +0 -0
  75. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/image_to_image.py +0 -0
  76. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/image_to_text.py +0 -0
  77. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/image_to_video.py +0 -0
  78. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/object_detection.py +0 -0
  79. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/question_answering.py +0 -0
  80. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/sentence_similarity.py +0 -0
  81. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/summarization.py +0 -0
  82. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/table_question_answering.py +0 -0
  83. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/text2text_generation.py +0 -0
  84. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/text_classification.py +0 -0
  85. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/text_generation.py +0 -0
  86. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/text_to_audio.py +0 -0
  87. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/text_to_image.py +0 -0
  88. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/text_to_speech.py +0 -0
  89. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/text_to_video.py +0 -0
  90. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/token_classification.py +0 -0
  91. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/translation.py +0 -0
  92. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/video_classification.py +0 -0
  93. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/visual_question_answering.py +0 -0
  94. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/zero_shot_classification.py +0 -0
  95. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/zero_shot_image_classification.py +0 -0
  96. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/zero_shot_object_detection.py +0 -0
  97. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_mcp/__init__.py +0 -0
  98. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_mcp/_cli_hacks.py +0 -0
  99. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_mcp/agent.py +0 -0
  100. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_mcp/cli.py +0 -0
  101. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_mcp/constants.py +0 -0
  102. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_mcp/mcp_client.py +0 -0
  103. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_mcp/types.py +0 -0
  104. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_mcp/utils.py +0 -0
  105. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/black_forest_labs.py +0 -0
  106. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/cerebras.py +0 -0
  107. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/cohere.py +0 -0
  108. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/fal_ai.py +0 -0
  109. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/featherless_ai.py +0 -0
  110. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/fireworks_ai.py +0 -0
  111. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/groq.py +0 -0
  112. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/hf_inference.py +0 -0
  113. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/hyperbolic.py +0 -0
  114. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/nebius.py +0 -0
  115. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/novita.py +0 -0
  116. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/nscale.py +0 -0
  117. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/openai.py +0 -0
  118. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/publicai.py +0 -0
  119. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/replicate.py +0 -0
  120. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/sambanova.py +0 -0
  121. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/scaleway.py +0 -0
  122. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/together.py +0 -0
  123. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/zai_org.py +0 -0
  124. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/py.typed +0 -0
  125. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/repocard.py +0 -0
  126. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/repocard_data.py +0 -0
  127. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/serialization/__init__.py +0 -0
  128. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/serialization/_base.py +0 -0
  129. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/serialization/_dduf.py +0 -0
  130. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/templates/datasetcard_template.md +0 -0
  131. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/templates/modelcard_template.md +0 -0
  132. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_auth.py +0 -0
  133. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_cache_assets.py +0 -0
  134. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_chunk_utils.py +0 -0
  135. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_datetime.py +0 -0
  136. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_deprecation.py +0 -0
  137. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_dotenv.py +0 -0
  138. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_experimental.py +0 -0
  139. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_fixes.py +0 -0
  140. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_git_credential.py +0 -0
  141. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_headers.py +0 -0
  142. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_lfs.py +0 -0
  143. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_pagination.py +0 -0
  144. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_paths.py +0 -0
  145. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_safetensors.py +0 -0
  146. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_subprocess.py +0 -0
  147. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_telemetry.py +0 -0
  148. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_terminal.py +0 -0
  149. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_typing.py +0 -0
  150. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_validators.py +0 -0
  151. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_xet.py +0 -0
  152. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_xet_progress_reporting.py +0 -0
  153. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/endpoint_helpers.py +0 -0
  154. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/insecure_hashlib.py +0 -0
  155. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/logging.py +0 -0
  156. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/sha.py +0 -0
  157. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/tqdm.py +0 -0
  158. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub.egg-info/dependency_links.txt +0 -0
  159. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/src/huggingface_hub.egg-info/entry_points.txt +0 -0
  160. {huggingface_hub-1.0.0rc6 → huggingface_hub-1.0.0rc7}/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: 1.0.0rc6
3
+ Version: 1.0.0rc7
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.
@@ -23,11 +23,9 @@ Classifier: Programming Language :: Python :: 3.13
23
23
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
24
24
  Requires-Python: >=3.9.0
25
25
  Description-Content-Type: text/markdown
26
- Provides-Extra: cli
27
26
  Provides-Extra: inference
28
27
  Provides-Extra: oauth
29
28
  Provides-Extra: torch
30
- Provides-Extra: hf_transfer
31
29
  Provides-Extra: fastai
32
30
  Provides-Extra: hf_xet
33
31
  Provides-Extra: mcp
@@ -14,8 +14,9 @@ unresolved-attribute = "ignore"
14
14
 
15
15
  # Be tolerant with framework/typing edge-cases and runtime-validated code paths
16
16
  unsupported-base = "ignore"
17
- possibly-unbound-attribute = "ignore"
18
17
  unsupported-operator = "ignore"
18
+ possibly-missing-attribute = "ignore"
19
+ possibly-missing-implicit-call = "ignore"
19
20
  non-subscriptable = "ignore"
20
21
  call-non-callable = "ignore"
21
22
 
@@ -17,9 +17,10 @@ install_requires = [
17
17
  "filelock",
18
18
  "fsspec>=2023.5.0",
19
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'",
20
+ "httpx>=0.23.0, <1",
20
21
  "packaging>=20.9",
21
22
  "pyyaml>=5.1",
22
- "httpx>=0.23.0, <1",
23
+ "shellingham",
23
24
  "tqdm>=4.42.1",
24
25
  "typer-slim",
25
26
  "typing-extensions>=3.7.4.3", # to be able to import TypeAlias
@@ -27,11 +28,6 @@ install_requires = [
27
28
 
28
29
  extras = {}
29
30
 
30
- extras["cli"] = [
31
- "InquirerPy==0.3.4", # Note: installs `prompt-toolkit` in the background
32
- "shellingham",
33
- ]
34
-
35
31
  extras["inference"] = [
36
32
  "aiohttp", # for AsyncInferenceClient
37
33
  ]
@@ -47,16 +43,13 @@ extras["torch"] = [
47
43
  "torch",
48
44
  "safetensors[torch]",
49
45
  ]
50
- extras["hf_transfer"] = [
51
- "hf_transfer>=0.1.4", # Pin for progress bars
52
- ]
53
46
  extras["fastai"] = [
54
47
  "toml",
55
48
  "fastai>=2.4",
56
49
  "fastcore>=1.3.27",
57
50
  ]
58
51
 
59
- extras["hf_xet"] = ["hf-xet>=1.1.2,<2.0.0"]
52
+ extras["hf_xet"] = ["hf-xet>=1.1.3,<2.0.0"]
60
53
 
61
54
  extras["mcp"] = [
62
55
  "mcp>=1.8.0",
@@ -64,8 +57,7 @@ extras["mcp"] = [
64
57
  ] + extras["inference"]
65
58
 
66
59
  extras["testing"] = (
67
- extras["cli"]
68
- + extras["inference"]
60
+ extras["inference"]
69
61
  + extras["oauth"]
70
62
  + [
71
63
  "jedi",
@@ -46,7 +46,7 @@ import sys
46
46
  from typing import TYPE_CHECKING
47
47
 
48
48
 
49
- __version__ = "1.0.0.rc6"
49
+ __version__ = "1.0.0.rc7"
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
@@ -163,6 +163,7 @@ _SUBMOD_ATTRS = {
163
163
  "GitRefs",
164
164
  "HfApi",
165
165
  "ModelInfo",
166
+ "Organization",
166
167
  "RepoUrl",
167
168
  "SpaceInfo",
168
169
  "User",
@@ -216,6 +217,7 @@ _SUBMOD_ATTRS = {
216
217
  "get_full_repo_name",
217
218
  "get_inference_endpoint",
218
219
  "get_model_tags",
220
+ "get_organization_overview",
219
221
  "get_paths_info",
220
222
  "get_repo_discussions",
221
223
  "get_safetensors_metadata",
@@ -692,6 +694,7 @@ __all__ = [
692
694
  "ObjectDetectionInput",
693
695
  "ObjectDetectionOutputElement",
694
696
  "ObjectDetectionParameters",
697
+ "Organization",
695
698
  "PYTORCH_WEIGHTS_NAME",
696
699
  "Padding",
697
700
  "PyTorchModelHubMixin",
@@ -862,6 +865,7 @@ __all__ = [
862
865
  "get_hf_file_metadata",
863
866
  "get_inference_endpoint",
864
867
  "get_model_tags",
868
+ "get_organization_overview",
865
869
  "get_paths_info",
866
870
  "get_repo_discussions",
867
871
  "get_safetensors_metadata",
@@ -1171,6 +1175,7 @@ if TYPE_CHECKING: # pragma: no cover
1171
1175
  GitRefs, # noqa: F401
1172
1176
  HfApi, # noqa: F401
1173
1177
  ModelInfo, # noqa: F401
1178
+ Organization, # noqa: F401
1174
1179
  RepoUrl, # noqa: F401
1175
1180
  SpaceInfo, # noqa: F401
1176
1181
  User, # noqa: F401
@@ -1224,6 +1229,7 @@ if TYPE_CHECKING: # pragma: no cover
1224
1229
  get_full_repo_name, # noqa: F401
1225
1230
  get_inference_endpoint, # noqa: F401
1226
1231
  get_model_tags, # noqa: F401
1232
+ get_organization_overview, # noqa: F401
1227
1233
  get_paths_info, # noqa: F401
1228
1234
  get_repo_discussions, # noqa: F401
1229
1235
  get_safetensors_metadata, # noqa: F401
@@ -503,11 +503,7 @@ def _upload_lfs_files(
503
503
  except Exception as exc:
504
504
  raise RuntimeError(f"Error while uploading '{operation.path_in_repo}' to the Hub.") from exc
505
505
 
506
- if constants.HF_HUB_ENABLE_HF_TRANSFER:
507
- logger.debug(f"Uploading {len(filtered_actions)} LFS files to the Hub using `hf_transfer`.")
508
- for action in hf_tqdm(filtered_actions, name="huggingface_hub.lfs_upload"):
509
- _wrapped_lfs_upload(action)
510
- elif len(filtered_actions) == 1:
506
+ if len(filtered_actions) == 1:
511
507
  logger.debug("Uploading 1 LFS file to the Hub")
512
508
  _wrapped_lfs_upload(filtered_actions[0])
513
509
  else:
@@ -30,7 +30,7 @@ class JobStage(str, Enum):
30
30
  ```py
31
31
  assert JobStage.COMPLETED == "COMPLETED"
32
32
  ```
33
-
33
+ Possible values are: `COMPLETED`, `CANCELED`, `ERROR`, `DELETED`, `RUNNING`.
34
34
  Taken from https://github.com/huggingface/moon-landing/blob/main/server/job_types/JobInfo.ts#L61 (private url).
35
35
  """
36
36
 
@@ -19,6 +19,8 @@ from getpass import getpass
19
19
  from pathlib import Path
20
20
  from typing import Optional
21
21
 
22
+ import typer
23
+
22
24
  from . import constants
23
25
  from .utils import (
24
26
  ANSI,
@@ -244,8 +246,6 @@ def interpreter_login(*, skip_if_logged_in: bool = False) -> None:
244
246
  logger.info("User is already logged in.")
245
247
  return
246
248
 
247
- from .cli.cache import _ask_for_confirmation_no_tui
248
-
249
249
  print(_HF_LOGO_ASCII)
250
250
  if get_token() is not None:
251
251
  logger.info(
@@ -261,7 +261,7 @@ def interpreter_login(*, skip_if_logged_in: bool = False) -> None:
261
261
  if os.name == "nt":
262
262
  logger.info("Token can be pasted using 'Right-Click'.")
263
263
  token = getpass("Enter your token (input will not be visible): ")
264
- add_to_git_credential = _ask_for_confirmation_no_tui("Add token as git credential?")
264
+ add_to_git_credential = typer.confirm("Add token as git credential?")
265
265
 
266
266
  _login(token=token, add_to_git_credential=add_to_git_credential)
267
267
 
@@ -403,9 +403,10 @@ def snapshot_download(
403
403
  )
404
404
  )
405
405
 
406
- if constants.HF_HUB_ENABLE_HF_TRANSFER and not dry_run:
407
- # when using hf_transfer we don't want extra parallelism
408
- # from the one hf_transfer provides
406
+ if constants.HF_XET_HIGH_PERFORMANCE and not dry_run:
407
+ # when using hf_xet high performance we don't want extra parallelism
408
+ # from the one hf_xet provides
409
+ # TODO: revisit this when xet_session is implemented
409
410
  for file in filtered_repo_files:
410
411
  _inner_hf_hub_download(file)
411
412
  else:
@@ -27,7 +27,6 @@ from threading import Lock
27
27
  from typing import TYPE_CHECKING, Any, Optional, Union
28
28
  from urllib.parse import quote
29
29
 
30
- from . import constants
31
30
  from ._commit_api import CommitOperationAdd, UploadInfo, _fetch_upload_modes
32
31
  from ._local_folder import LocalUploadFileMetadata, LocalUploadFilePaths, get_local_upload_paths, read_upload_metadata
33
32
  from .constants import DEFAULT_REVISION, REPO_TYPES
@@ -199,16 +198,7 @@ def upload_large_folder_internal(
199
198
  logger.info(f"Repo created: {repo_url}")
200
199
  repo_id = repo_url.repo_id
201
200
  # 2.1 Check if xet is enabled to set batch file upload size
202
- is_xet_enabled = (
203
- is_xet_available()
204
- and api.repo_info(
205
- repo_id=repo_id,
206
- repo_type=repo_type,
207
- revision=revision,
208
- expand="xetEnabled",
209
- ).xet_enabled
210
- )
211
- upload_batch_size = UPLOAD_BATCH_SIZE_XET if is_xet_enabled else UPLOAD_BATCH_SIZE_LFS
201
+ upload_batch_size = UPLOAD_BATCH_SIZE_XET if is_xet_available() else UPLOAD_BATCH_SIZE_LFS
212
202
 
213
203
  # 3. List files to upload
214
204
  filtered_paths_list = filter_repo_objects(
@@ -559,10 +549,7 @@ def _determine_next_job(status: LargeUploadStatus) -> Optional[tuple[WorkerJob,
559
549
  return (WorkerJob.GET_UPLOAD_MODE, _get_n(status.queue_get_upload_mode, MAX_NB_FILES_FETCH_UPLOAD_MODE))
560
550
 
561
551
  # 7. Preupload LFS file if at least `status.upload_batch_size` files
562
- # Skip if hf_transfer is enabled and there is already a worker preuploading LFS
563
- elif status.queue_preupload_lfs.qsize() >= status.upload_batch_size and (
564
- status.nb_workers_preupload_lfs == 0 or not constants.HF_HUB_ENABLE_HF_TRANSFER
565
- ):
552
+ elif status.queue_preupload_lfs.qsize() >= status.upload_batch_size:
566
553
  status.nb_workers_preupload_lfs += 1
567
554
  logger.debug("Job: preupload LFS")
568
555
  return (WorkerJob.PREUPLOAD_LFS, _get_n(status.queue_preupload_lfs, status.upload_batch_size))
@@ -32,7 +32,7 @@ if is_fastapi_available():
32
32
  from fastapi.responses import JSONResponse
33
33
  else:
34
34
  # Will fail at runtime if FastAPI is not available
35
- FastAPI = Request = JSONResponse = None # type: ignore [misc, assignment]
35
+ FastAPI = Request = JSONResponse = None # type: ignore
36
36
 
37
37
 
38
38
  _global_app: Optional["WebhooksServer"] = None
@@ -38,7 +38,7 @@ def get_hf_api(token: Optional[str] = None) -> "HfApi":
38
38
  # Import here to avoid circular import
39
39
  from huggingface_hub.hf_api import HfApi
40
40
 
41
- return HfApi(token=token, library_name="hf", library_version=__version__)
41
+ return HfApi(token=token, library_name="huggingface-cli", library_version=__version__)
42
42
 
43
43
 
44
44
  #### TYPER UTILS
@@ -45,14 +45,6 @@ from ._cli_utils import TokenOpt, typer_factory
45
45
 
46
46
  logger = logging.get_logger(__name__)
47
47
 
48
- try:
49
- from InquirerPy import inquirer
50
- from InquirerPy.base.control import Choice
51
-
52
- _inquirer_py_available = True
53
- except ImportError:
54
- _inquirer_py_available = False
55
-
56
48
 
57
49
  auth_cli = typer_factory(help="Manage authentication (login, logout, etc.).")
58
50
 
@@ -89,18 +81,6 @@ def _select_token_name() -> Optional[str]:
89
81
  logger.error("No stored tokens found. Please login first.")
90
82
  return None
91
83
 
92
- if _inquirer_py_available:
93
- choices = [Choice(token_name, name=token_name) for token_name in token_names]
94
- try:
95
- return inquirer.select(
96
- message="Select a token to switch to:",
97
- choices=choices,
98
- default=None,
99
- ).execute()
100
- except KeyboardInterrupt:
101
- logger.info("Token selection cancelled.")
102
- return None
103
- # if inquirer is not available, use a simpler terminal UI
104
84
  print("Available stored tokens:")
105
85
  for i, token_name in enumerate(token_names, 1):
106
86
  print(f"{i}. {token_name}")