{"id":13507798,"url":"https://github.com/huggingface/huggingface_hub","last_synced_at":"2026-04-29T11:01:22.645Z","repository":{"id":37080640,"uuid":"323591830","full_name":"huggingface/huggingface_hub","owner":"huggingface","description":"The official Python client for the Hugging Face Hub.","archived":false,"fork":false,"pushed_at":"2026-04-27T12:15:25.000Z","size":37681,"stargazers_count":3552,"open_issues_count":197,"forks_count":1000,"subscribers_count":67,"default_branch":"main","last_synced_at":"2026-04-27T12:27:50.550Z","etag":null,"topics":["deep-learning","hacktoberfest","machine-learning","model-hub","models","natural-language-processing","pretrained-models","pytorch"],"latest_commit_sha":null,"homepage":"https://huggingface.co/docs/huggingface_hub","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/huggingface.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2020-12-22T10:20:28.000Z","updated_at":"2026-04-27T12:15:31.000Z","dependencies_parsed_at":"2025-12-15T22:00:39.449Z","dependency_job_id":"7f796047-f781-49fb-b726-5d8e8ce95d5c","html_url":"https://github.com/huggingface/huggingface_hub","commit_stats":{"total_commits":1630,"total_committers":210,"mean_commits":7.761904761904762,"dds":0.6539877300613497,"last_synced_commit":"c4e60791799d85e97a7d6c213e3bca407abc373a"},"previous_names":[],"tags_count":276,"template":false,"template_full_name":null,"purl":"pkg:github/huggingface/huggingface_hub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huggingface%2Fhuggingface_hub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huggingface%2Fhuggingface_hub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huggingface%2Fhuggingface_hub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huggingface%2Fhuggingface_hub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huggingface","download_url":"https://codeload.github.com/huggingface/huggingface_hub/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huggingface%2Fhuggingface_hub/sbom","scorecard":{"id":32015,"data":{"date":"2025-08-04","repo":{"name":"github.com/huggingface/huggingface_hub","commit":"58d644795ac97d92a648bbcbeedd16fbb4b6ffc4"},"scorecard":{"version":"v5.2.1-28-gc1d103a9","commit":"c1d103a9bb9f635ec7260bf9aa0699466fa4be0e"},"score":6.2,"checks":[{"name":"Maintained","score":10,"reason":"30 commit(s) and 3 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#maintained"}},{"name":"Code-Review","score":9,"reason":"Found 28/30 approved changesets -- score normalized to 9","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'pull-requests' permission set to 'read': .github/workflows/claude.yml:23","Info: jobLevel 'issues' permission set to 'read': .github/workflows/claude.yml:24","Info: jobLevel 'contents' permission set to 'read': .github/workflows/claude.yml:22","Warn: no topLevel permission defined: .github/workflows/build_documentation.yaml:1","Warn: no topLevel permission defined: .github/workflows/build_pr_documentation.yaml:1","Warn: no topLevel permission defined: .github/workflows/build_repocard_examples.yaml:1","Warn: no topLevel permission defined: .github/workflows/claude.yml:1","Warn: no topLevel permission defined: .github/workflows/contrib-tests.yml:1","Warn: no topLevel permission defined: .github/workflows/model_card_consistency_reminder.yml:1","Warn: no topLevel permission defined: .github/workflows/python-prerelease.yml:1","Warn: no topLevel permission defined: .github/workflows/python-quality.yml:1","Warn: no topLevel permission defined: .github/workflows/python-release.yml:1","Warn: no topLevel permission defined: .github/workflows/python-tests.yml:1","Warn: no topLevel permission defined: .github/workflows/release-conda.yml:1","Warn: no topLevel permission defined: .github/workflows/style-bot-action.yml:1","Warn: topLevel 'contents' permission set to 'write': .github/workflows/style-bot.yml:8","Warn: no topLevel permission defined: .github/workflows/trufflehog.yml:1","Warn: no topLevel permission defined: .github/workflows/update-inference-types.yaml:1","Warn: no topLevel permission defined: .github/workflows/upload_pr_documentation.yaml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#token-permissions"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#license"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/build_documentation.yaml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/huggingface/huggingface_hub/build_documentation.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build_pr_documentation.yaml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/huggingface/huggingface_hub/build_pr_documentation.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build_repocard_examples.yaml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/huggingface/huggingface_hub/build_repocard_examples.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build_repocard_examples.yaml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/huggingface/huggingface_hub/build_repocard_examples.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/claude.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/huggingface/huggingface_hub/claude.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/claude.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/huggingface/huggingface_hub/claude.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/contrib-tests.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/huggingface/huggingface_hub/contrib-tests.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/contrib-tests.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/huggingface/huggingface_hub/contrib-tests.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/model_card_consistency_reminder.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/huggingface/huggingface_hub/model_card_consistency_reminder.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-prerelease.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/huggingface/huggingface_hub/python-prerelease.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-quality.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/huggingface/huggingface_hub/python-quality.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-quality.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/huggingface/huggingface_hub/python-quality.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-release.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/huggingface/huggingface_hub/python-release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-release.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/huggingface/huggingface_hub/python-release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-tests.yml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/huggingface/huggingface_hub/python-tests.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-tests.yml:50: update your workflow using https://app.stepsecurity.io/secureworkflow/huggingface/huggingface_hub/python-tests.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/python-tests.yml:165: update your workflow using https://app.stepsecurity.io/secureworkflow/huggingface/huggingface_hub/python-tests.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-tests.yml:185: update your workflow using https://app.stepsecurity.io/secureworkflow/huggingface/huggingface_hub/python-tests.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-tests.yml:187: update your workflow using https://app.stepsecurity.io/secureworkflow/huggingface/huggingface_hub/python-tests.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/python-tests.yml:234: update your workflow using https://app.stepsecurity.io/secureworkflow/huggingface/huggingface_hub/python-tests.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-conda.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/huggingface/huggingface_hub/release-conda.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release-conda.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/huggingface/huggingface_hub/release-conda.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/style-bot-action.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/huggingface/huggingface_hub/style-bot-action.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/style-bot-action.yml:66: update your workflow using https://app.stepsecurity.io/secureworkflow/huggingface/huggingface_hub/style-bot-action.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/style-bot-action.yml:92: update your workflow using https://app.stepsecurity.io/secureworkflow/huggingface/huggingface_hub/style-bot-action.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/style-bot-action.yml:137: update your workflow using https://app.stepsecurity.io/secureworkflow/huggingface/huggingface_hub/style-bot-action.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/style-bot-action.yml:154: update your workflow using https://app.stepsecurity.io/secureworkflow/huggingface/huggingface_hub/style-bot-action.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/style-bot-action.yml:227: update your workflow using https://app.stepsecurity.io/secureworkflow/huggingface/huggingface_hub/style-bot-action.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/trufflehog.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/huggingface/huggingface_hub/trufflehog.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/trufflehog.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/huggingface/huggingface_hub/trufflehog.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/update-inference-types.yaml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/huggingface/huggingface_hub/update-inference-types.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/update-inference-types.yaml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/huggingface/huggingface_hub/update-inference-types.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/update-inference-types.yaml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/huggingface/huggingface_hub/update-inference-types.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/update-inference-types.yaml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/huggingface/huggingface_hub/update-inference-types.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/update-inference-types.yaml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/huggingface/huggingface_hub/update-inference-types.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/update-inference-types.yaml:71: update your workflow using https://app.stepsecurity.io/secureworkflow/huggingface/huggingface_hub/update-inference-types.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/upload_pr_documentation.yaml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/huggingface/huggingface_hub/upload_pr_documentation.yaml/main?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/build_repocard_examples.yaml:25","Warn: pipCommand not pinned by hash: .github/workflows/build_repocard_examples.yaml:26","Warn: pipCommand not pinned by hash: .github/workflows/build_repocard_examples.yaml:27","Warn: pipCommand not pinned by hash: .github/workflows/contrib-tests.yml:37","Warn: pipCommand not pinned by hash: .github/workflows/contrib-tests.yml:41","Warn: pipCommand not pinned by hash: .github/workflows/contrib-tests.yml:46","Warn: pipCommand not pinned by hash: .github/workflows/python-prerelease.yml:48","Warn: pipCommand not pinned by hash: .github/workflows/python-quality.yml:33","Warn: pipCommand not pinned by hash: .github/workflows/python-release.yml:23","Warn: pipCommand not pinned by hash: .github/workflows/python-release.yml:24","Warn: pipCommand not pinned by hash: .github/workflows/python-release.yml:29","Warn: pipCommand not pinned by hash: .github/workflows/python-tests.yml:58","Warn: pipCommand not pinned by hash: .github/workflows/style-bot-action.yml:162","Warn: pipCommand not pinned by hash: .github/workflows/style-bot-action.yml:163","Warn: pipCommand not pinned by hash: .github/workflows/update-inference-types.yaml:27","Info:   0 out of  26 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of  11 third-party GitHubAction dependencies pinned","Info:   0 out of  15 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#pinned-dependencies"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#branch-protection"}},{"name":"SAST","score":7,"reason":"SAST tool is not run on all commits -- score normalized to 7","details":["Warn: 22 commits out of 28 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-14T19:21:33.468Z","repository_id":37080640,"created_at":"2025-08-14T19:21:33.468Z","updated_at":"2025-08-14T19:21:33.468Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32375625,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T09:24:15.638Z","status":"ssl_error","status_checked_at":"2026-04-28T09:24:15.071Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deep-learning","hacktoberfest","machine-learning","model-hub","models","natural-language-processing","pretrained-models","pytorch"],"created_at":"2024-08-01T02:00:39.341Z","updated_at":"2026-04-29T11:01:22.597Z","avatar_url":"https://github.com/huggingface.png","language":"Python","funding_links":[],"categories":["🎉 Additional awesome resources for releasing research code","Python","🤗 Official Libraries","8. MLOps / LLMOps \u0026 Production","AI and ML","Official Platform Skills"],"sub_categories":["Hosting pretrained models files"],"readme":"\u003cp align=\"center\"\u003e\n  \u003cpicture\u003e\n    \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://huggingface.co/datasets/huggingface/documentation-images/raw/main/huggingface_hub-dark.svg\"\u003e\n    \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://huggingface.co/datasets/huggingface/documentation-images/raw/main/huggingface_hub.svg\"\u003e\n    \u003cimg alt=\"huggingface_hub library logo\" src=\"https://huggingface.co/datasets/huggingface/documentation-images/raw/main/huggingface_hub.svg\" width=\"352\" height=\"59\" style=\"max-width: 100%\"\u003e\n  \u003c/picture\u003e\n  \u003cbr/\u003e\n  \u003cbr/\u003e\n\u003c/p\u003e \n\n\u003cp align=\"center\"\u003e\n    \u003ci\u003eThe official Python client for the Huggingface Hub.\u003c/i\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://huggingface.co/docs/huggingface_hub/en/index\"\u003e\u003cimg alt=\"Documentation\" src=\"https://img.shields.io/website/http/huggingface.co/docs/huggingface_hub/index.svg?down_color=red\u0026down_message=offline\u0026up_message=online\u0026label=doc\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/huggingface/huggingface_hub/releases\"\u003e\u003cimg alt=\"GitHub release\" src=\"https://img.shields.io/github/release/huggingface/huggingface_hub.svg\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/huggingface/huggingface_hub\"\u003e\u003cimg alt=\"PyPi version\" src=\"https://img.shields.io/pypi/pyversions/huggingface_hub.svg\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://pypi.org/project/huggingface-hub\"\u003e\u003cimg alt=\"PyPI - Downloads\" src=\"https://img.shields.io/pypi/dm/huggingface_hub\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://codecov.io/gh/huggingface/huggingface_hub\"\u003e\u003cimg alt=\"Code coverage\" src=\"https://codecov.io/gh/huggingface/huggingface_hub/branch/main/graph/badge.svg?token=RXP95LE2XL\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch4 align=\"center\"\u003e\n    \u003cp\u003e\n        \u003cb\u003eEnglish\u003c/b\u003e |\n        \u003ca href=\"https://github.com/huggingface/huggingface_hub/blob/main/i18n/README_de.md\"\u003eDeutsch\u003c/a\u003e |\n        \u003ca href=\"https://github.com/huggingface/huggingface_hub/blob/main/i18n/README_fr.md\"\u003eFrançais\u003c/a\u003e |\n        \u003ca href=\"https://github.com/huggingface/huggingface_hub/blob/main/i18n/README_hi.md\"\u003eहिंदी\u003c/a\u003e |\n        \u003ca href=\"https://github.com/huggingface/huggingface_hub/blob/main/i18n/README_ko.md\"\u003e한국어\u003c/a\u003e |\n        \u003ca href=\"https://github.com/huggingface/huggingface_hub/blob/main/i18n/README_cn.md\"\u003e中文 (简体)\u003c/a\u003e\n    \u003cp\u003e\n\u003c/h4\u003e\n\n---\n\n**Documentation**: \u003ca href=\"https://hf.co/docs/huggingface_hub\" target=\"_blank\"\u003ehttps://hf.co/docs/huggingface_hub\u003c/a\u003e\n\n**Source Code**: \u003ca href=\"https://github.com/huggingface/huggingface_hub\" target=\"_blank\"\u003ehttps://github.com/huggingface/huggingface_hub\u003c/a\u003e\n\n---\n\n## Welcome to the huggingface_hub library\n\nThe `huggingface_hub` library allows you to interact with the [Hugging Face Hub](https://huggingface.co/), a platform democratizing open-source Machine Learning for creators and collaborators. Discover pre-trained models and datasets for your projects or play with the thousands of machine learning apps hosted on the Hub. You can also create and share your own models, datasets and demos with the community. The `huggingface_hub` library provides a simple way to do all these things with Python.\n\n## Key features\n\n- [Download files](https://huggingface.co/docs/huggingface_hub/en/guides/download) from the Hub.\n- [Upload files](https://huggingface.co/docs/huggingface_hub/en/guides/upload) to the Hub.\n- [Manage your repositories](https://huggingface.co/docs/huggingface_hub/en/guides/repository).\n- [Run Inference](https://huggingface.co/docs/huggingface_hub/en/guides/inference) on deployed models.\n- [Search](https://huggingface.co/docs/huggingface_hub/en/guides/search) for models, datasets and Spaces.\n- [Share Model Cards](https://huggingface.co/docs/huggingface_hub/en/guides/model-cards) to document your models.\n- [Engage with the community](https://huggingface.co/docs/huggingface_hub/en/guides/community) through PRs and comments.\n\n## Installation\n\nInstall the `huggingface_hub` package with [pip](https://pypi.org/project/huggingface-hub/):\n\n```bash\npip install huggingface_hub\n```\n\nIf you prefer, you can also install it with [conda](https://huggingface.co/docs/huggingface_hub/en/installation#install-with-conda).\n\nIn order to keep the package minimal by default, `huggingface_hub` comes with optional dependencies useful for some use cases. For example, if you want to use the MCP module, run:\n\n```bash\npip install \"huggingface_hub[mcp]\"\n```\n\nTo learn more installation and optional dependencies, check out the [installation guide](https://huggingface.co/docs/huggingface_hub/en/installation).\n\n## Quick start\n\n### Download files\n\nDownload a single file\n\n```py\nfrom huggingface_hub import hf_hub_download\n\nhf_hub_download(repo_id=\"tiiuae/falcon-7b-instruct\", filename=\"config.json\")\n```\n\nOr an entire repository\n\n```py\nfrom huggingface_hub import snapshot_download\n\nsnapshot_download(\"stabilityai/stable-diffusion-2-1\")\n```\n\nFiles will be downloaded in a local cache folder. More details in [this guide](https://huggingface.co/docs/huggingface_hub/en/guides/manage-cache).\n\n### Login\n\nThe Hugging Face Hub uses tokens to authenticate applications (see [docs](https://huggingface.co/docs/hub/security-tokens)). To log in your machine, run the following CLI:\n\n```bash\nhf auth login\n# or using an environment variable\nhf auth login --token $HUGGINGFACE_TOKEN\n```\n\n### Create a repository\n\n```py\nfrom huggingface_hub import create_repo\n\ncreate_repo(repo_id=\"super-cool-model\")\n```\n\n### Upload files\n\nUpload a single file\n\n```py\nfrom huggingface_hub import upload_file\n\nupload_file(\n    path_or_fileobj=\"/home/lysandre/dummy-test/README.md\",\n    path_in_repo=\"README.md\",\n    repo_id=\"lysandre/test-model\",\n)\n```\n\nOr an entire folder\n\n```py\nfrom huggingface_hub import upload_folder\n\nupload_folder(\n    folder_path=\"/path/to/local/space\",\n    repo_id=\"username/my-cool-space\",\n    repo_type=\"space\",\n)\n```\n\nFor details in the [upload guide](https://huggingface.co/docs/huggingface_hub/en/guides/upload).\n\n## Integrating to the Hub.\n\nWe're partnering with cool open source ML libraries to provide free model hosting and versioning. You can find the existing integrations [here](https://huggingface.co/docs/hub/libraries).\n\nThe advantages are:\n\n- Free model or dataset hosting for libraries and their users.\n- Built-in file versioning, even with very large files, thanks to a git-based approach.\n- In-browser widgets to play with the uploaded models.\n- Anyone can upload a new model for your library, they just need to add the corresponding tag for the model to be discoverable.\n- Fast downloads! We use Cloudfront (a CDN) to geo-replicate downloads so they're blazing fast from anywhere on the globe.\n- Usage stats and more features to come.\n\nIf you would like to integrate your library, feel free to open an issue to begin the discussion. We wrote a [step-by-step guide](https://huggingface.co/docs/hub/adding-a-library) with ❤️ showing how to do this integration.\n\n## Contributions (feature requests, bugs, etc.) are super welcome 💙💚💛💜🧡❤️\n\nEveryone is welcome to contribute, and we value everybody's contribution. Code is not the only way to help the community.\nAnswering questions, helping others, reaching out and improving the documentations are immensely valuable to the community.\nWe wrote a [contribution guide](https://github.com/huggingface/huggingface_hub/blob/main/CONTRIBUTING.md) to summarize\nhow to get started to contribute to this repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuggingface%2Fhuggingface_hub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuggingface%2Fhuggingface_hub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuggingface%2Fhuggingface_hub/lists"}