LFS (Large File Storage) utilities for HuggingFace Hub.
Provides functionality for calculating file hashes and preparing upload information for the LFS protocol.
Based on Python's huggingface_hub.lfs module.
Summary
Functions
Returns the standard LFS headers for API requests.
Returns the LFS OID (object identifier) for upload info.
Converts UploadInfo sha256 to lowercase hex string.
Functions
Returns the standard LFS headers for API requests.
@spec oid(HfHub.LFS.UploadInfo.t()) :: String.t()
Returns the LFS OID (object identifier) for upload info.
The OID is the lowercase hex representation of the SHA256 hash.
@spec sha256_hex(HfHub.LFS.UploadInfo.t()) :: String.t()
Converts UploadInfo sha256 to lowercase hex string.