source
stringclasses
40 values
file_type
stringclasses
1 value
chunk
stringlengths
3
512
chunk_id
stringlengths
5
8
/Users/nielsrogge/Documents/python_projecten/huggingface_hub/docs/source/en/concepts/git_vs_http.md
.md
The [`HfApi`] class was developed to provide an alternative to local git repositories, which can be cumbersome to maintain, especially when dealing with large models or datasets. The [`HfApi`] class offers the same functionality as git-based approaches, such as downloading and pushing files and creating branches and tags, but without the need for a local folder that needs to be kept in sync. In addition to the functionalities already provided by `git`, the [`HfApi`] class offers
39_3_0
/Users/nielsrogge/Documents/python_projecten/huggingface_hub/docs/source/en/concepts/git_vs_http.md
.md
that needs to be kept in sync. In addition to the functionalities already provided by `git`, the [`HfApi`] class offers additional features, such as the ability to manage repos, download files using caching for efficient reuse, search the Hub for repos and metadata, access community features such as discussions, PRs, and comments, and configure Spaces hardware and secrets.
39_3_1
/Users/nielsrogge/Documents/python_projecten/huggingface_hub/docs/source/en/concepts/git_vs_http.md
.md
Overall, the **HTTP-based approach is the recommended way to use** `huggingface_hub` in all cases. [`HfApi`] allows to pull and push changes, work with PRs, tags and branches, interact with discussions and much more. Since the `0.16` release, the http-based methods can also run in the background, which was the last major advantage of the [`Repository`] class.
39_4_0
/Users/nielsrogge/Documents/python_projecten/huggingface_hub/docs/source/en/concepts/git_vs_http.md
.md
However, not all git commands are available through [`HfApi`]. Some may never be implemented, but we are always trying to improve and close the gap. If you don't see your use case covered, please open [an issue on Github](https://github.com/huggingface/huggingface_hub)! We welcome feedback to help build the 馃 ecosystem with and for our users.
39_4_1
/Users/nielsrogge/Documents/python_projecten/huggingface_hub/docs/source/en/concepts/git_vs_http.md
.md
This preference of the http-based [`HfApi`] over the git-based [`Repository`] does not mean that git versioning will disappear from the Hugging Face Hub anytime soon. It will always be possible to use `git` commands locally in workflows where it makes sense.
39_4_2