Coverage for openhcs/introspection/__init__.py: 100.0%

3 statements  

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

1""" 

2OpenHCS Introspection Package 

3 

4Pure Python reflection and introspection utilities for analyzing: 

5- Function and method signatures 

6- Dataclass fields and types 

7- Parameter information extraction 

8- Docstring parsing 

9- Type hint resolution 

10 

11This package is framework-agnostic and has minimal dependencies on OpenHCS-specific 

12code (only lazy imports for config type resolution). It can be used by: 

13- config_framework (for cache warming) 

14- UI layers (for form generation) 

15- Processing backends (for function annotation enhancement) 

16- Any code that needs to introspect Python objects 

17 

18Key Components: 

19- SignatureAnalyzer: Extract parameter info from functions/dataclasses 

20- UnifiedParameterAnalyzer: Unified interface for all parameter sources 

21""" 

22 

23from openhcs.introspection.signature_analyzer import ( 

24 SignatureAnalyzer, 

25 ParameterInfo, 

26 DocstringInfo, 

27 DocstringExtractor, 

28) 

29from openhcs.introspection.unified_parameter_analyzer import ( 

30 UnifiedParameterAnalyzer, 

31 UnifiedParameterInfo, 

32) 

33 

34__all__ = [ 

35 # Signature analysis 

36 'SignatureAnalyzer', 

37 'ParameterInfo', 

38 'DocstringInfo', 

39 'DocstringExtractor', 

40 # Unified analysis 

41 'UnifiedParameterAnalyzer', 

42 'UnifiedParameterInfo', 

43] 

44