nicetoolbox.utils.hf_token.effective_hf_hub_token

nicetoolbox.utils.hf_token.effective_hf_hub_token(machine: MachineSpecificConfig | None = None) str | None[source]

Return a non-empty token string if hugging_face_token is set in machine_specific_paths.toml.

Environment variables are not consulted; configure the token only in machine_specific_paths.toml.