Skip to content

Third-party servicesサードパーティサービス

Authentication with alternative package indexes代替パッケージインデックスによる認証

See the alternative indexes integration guide for details on authentication with popular alternative Python package indexes.詳細については、代替インデックス統合ガイドを参照してください。 人気のある代替Pythonパッケージインデックスによる認証に関する情報が含まれています。

Hugging Face supportHugging Face サポート

uv supports automatic authentication for the Hugging Face Hub. Specifically, if the HF_TOKEN environment variable is set, uv will propagate it to requests to huggingface.co.uvはHugging Face Hubの自動認証をサポートしています。具体的には、HF_TOKEN 環境変数が設定されている場合、uvはそれをhuggingface.coへのリクエストに伝播します。

This is particularly useful for accessing private scripts in Hugging Face Datasets. For example, you can run the following command to execute the script main.py script from a private dataset:これは、Hugging Face Datasets内のプライベートスクリプトにアクセスする際に特に便利です。たとえば、プライベートデータセットからmain.pyスクリプトを実行するには、次のコマンドを実行できます:

$ HF_TOKEN=hf_... uv run https://huggingface.co/datasets/<user>/<name>/resolve/<branch>/main.py

You can disable automatic Hugging Face authentication by setting the UV_NO_HF_TOKEN=1 environment variable.UV_NO_HF_TOKEN=1 環境変数を設定することで、自動Hugging Face認証を無効にすることができます。