Coverage for src/hieraconf/__init__.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.11.0, created at 2025-11-02 21:44 +0000

1""" 

2hieraconf: Generic lazy dataclass configuration framework. 

3 

4This package provides a complete system for hierarchical configuration management 

5with lazy resolution, dual-axis inheritance, and UI integration. 

6""" 

7 

8__version__ = "0.1.0" 

9 

10from .lazy_factory import ( 

11 LazyDataclassFactory, 

12 auto_create_decorator, 

13 register_lazy_type_mapping, 

14 get_base_type_for_lazy, 

15 ensure_global_config_context, 

16) 

17from .dual_axis_resolver import ( 

18 resolve_field_inheritance, 

19) 

20from .context_manager import ( 

21 config_context, 

22 get_current_temp_global, 

23 set_current_temp_global, 

24 clear_current_temp_global, 

25 merge_configs, 

26 extract_all_configs, 

27 get_base_global_config, 

28) 

29from .placeholder import LazyDefaultPlaceholderService 

30from .global_config import ( 

31 set_current_global_config, 

32 get_current_global_config, 

33 set_global_config_for_editing, 

34) 

35from .config import ( 

36 set_base_config_type, 

37 get_base_config_type, 

38) 

39from .cache_warming import ( 

40 prewarm_config_analysis_cache, 

41 prewarm_callable_analysis_cache, 

42) 

43 

44__all__ = [ 

45 # Factory 

46 "LazyDataclassFactory", 

47 "auto_create_decorator", 

48 "register_lazy_type_mapping", 

49 "get_base_type_for_lazy", 

50 "ensure_global_config_context", 

51 # Resolver 

52 "resolve_field_inheritance", 

53 # Context 

54 "config_context", 

55 "get_current_temp_global", 

56 "set_current_temp_global", 

57 "clear_current_temp_global", 

58 "merge_configs", 

59 "extract_all_configs", 

60 "get_base_global_config", 

61 # Placeholder 

62 "LazyDefaultPlaceholderService", 

63 # Global config 

64 "set_current_global_config", 

65 "get_current_global_config", 

66 "set_global_config_for_editing", 

67 # Configuration 

68 "set_base_config_type", 

69 "get_base_config_type", 

70 # Cache warming 

71 "prewarm_config_analysis_cache", 

72 "prewarm_callable_analysis_cache", 

73]