Below is the documentation for the `HfApi` class, which serves as a Python wrapper for the Hugging Face Hub's API.  
All methods from the `HfApi` are also accessible from the package's root directly. Both approaches are detailed below.  
Using the root method is more straightforward but the [`HfApi`] class gives you more flexibility.
In particular, you can pass a token that will be reused in all HTTP calls. This is different