`huggingface_hub` library includes an HTTP client [`HfApi`] to interact with the Hub.
Among other things, it can list models, datasets and spaces stored on the Hub:  
```py
>>> from huggingface_hub import HfApi
>>> api = HfApi()
>>> models = api.list_models()
```  
The output of [`list_models`] is an iterator over the models stored on the Hub.  
Similarly, you can use [`list_datasets`] to list datasets and [`list_spaces`] to list Spaces.