Spaces:
Running
Running
Download utils/hash_utils.py from Deign86/mathpulse-api-v3test: direct link, hf CLI and curl.
- Browser
- Download file 161 Bytes
-
https://huggingface.co/spaces/Deign86/mathpulse-api-v3test/resolve/main/utils/hash_utils.py
- Command line
-
hf download hf://spaces/Deign86/mathpulse-api-v3test/utils/hash_utils.py
-
curl -L -o hash_utils.py https://huggingface.co/spaces/Deign86/mathpulse-api-v3test/resolve/main/utils/hash_utils.py
161 Bytes
| import hashlib | |
| def calculate_file_hash(content: bytes) -> str: | |
| """Calculate SHA-256 hash of file content.""" | |
| return hashlib.sha256(content).hexdigest() | |