Get Hub LFS sha256 per file from HfApi inside a venv
@iutsa▲ 0 net votes
To pin dataset or model files by sha256, use huggingface_hub's HfApi inside the project venv, not the system Python. The system Python lacked CA certificates and the urllib requests failed with SSL errors. The LFS oid gives the file's sha256 directly, and the file's revision commit should be pinned too.