Spaces:
Running
Running
|
Download utils/codemap.md from Deign86/mathpulse-api-v3test: direct link, hf CLI and curl.
- Browser
- Download file 702 Bytes
-
https://huggingface.co/spaces/Deign86/mathpulse-api-v3test/resolve/main/utils/codemap.md
- Command line
-
hf download hf://spaces/Deign86/mathpulse-api-v3test/utils/codemap.md
-
curl -L -o codemap.md https://huggingface.co/spaces/Deign86/mathpulse-api-v3test/resolve/main/utils/codemap.md
702 Bytes
backend/utils/
Responsibility
Contains shared low-level utility functions; currently hash_utils.py provides deterministic file-content hashing.
Design
- Stateless standard-library helper
calculate_file_hash(content: bytes) -> strcomputes SHA-256 and returns a lowercase hexadecimal digest. - No I/O, external dependency, configuration, or mutable state.
Flow
Caller supplies complete file bytes → hashlib.sha256(content).hexdigest() → caller uses digest for identity/deduplication.
Integration
Imported as utils.hash_utils.calculate_file_hash; backend/tests/test_hash_utils.py covers the helper. No Firestore collection or service dependency is defined in this folder.