Coverage for src/romfarmer/core/__init__.py: 100%

2 statements  

« prev     ^ index     » next       coverage.py v7.15.4, created at 2026-09-01 23:08 -0700

1"""Core utilities for ROM Farmer. 

2 

3This module provides foundational functionality used across the project: 

4- Hashing: System-aware ROM hashing for metadata matching 

5- Configuration: Project-wide settings 

6- Logging: Centralized logging configuration 

7- Paths: Path resolution and management 

8""" 

9 

10from .hashing import ( 

11 # Constants 

12 ARCADE_SYSTEMS, 

13 DIRECT_HASH_EXTENSIONS, 

14 HashingStrategy, 

15 # Types 

16 HashResult, 

17 calculate_hash, 

18 # Primary entry points 

19 calculate_md5, 

20 calculate_md5_with_auto_detect, 

21 detect_system_from_path, 

22 # Strategy helpers 

23 get_hashing_strategy, 

24 hash_for_metadata_lookup, 

25 is_arcade_system, 

26) 

27 

28__all__ = [ 

29 # Hashing functions 

30 "calculate_md5", 

31 "calculate_hash", 

32 "hash_for_metadata_lookup", 

33 "calculate_md5_with_auto_detect", 

34 "get_hashing_strategy", 

35 "is_arcade_system", 

36 "detect_system_from_path", 

37 # Hashing types 

38 "HashResult", 

39 "HashingStrategy", 

40 # Constants 

41 "ARCADE_SYSTEMS", 

42 "DIRECT_HASH_EXTENSIONS", 

43]