1. Hub Python SDK¶
Learning Resources¶
The huggingface_hub
library is the primary SDK for working programmatically with the Hugging Face Hub. Here are the three main resources needed to explore it:
- Conceptual guides - high-level explainers of the Hub features.
- API reference -
huggingface_hub
package classes and methods. - How-to guides - practical guides for achieving core tasks
Hands-on Labs¶
Get Started With Notebooks
We'll use Jupyter Notebooks for hands-on labs. It gives us built-in documentation and reproducible code snippets for reuse. To get started with a lab:
- Launch the dev container on your fork of the repo
- Visit the
labs/01-huggingface
folder in the VS Code file explorer - Look for the named lab notebook below and click it to open notebook
- Click "Select Kernel" and pick the default Python environment shown
- Click "Clear Outputs" then "Run All" to execute the notebook end-to-end.
Lab Notebooks:
- 01-hub-quickstart.ipynb · Authenticate with Hugging Face · Validate basic Hub APIs