Coverage for sentimatrix / __init__.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.13.2, created at 2026-01-28 09:30 +0000

1""" 

2Sentimatrix V2 - Advanced Sentiment Analysis Toolkit 

3 

4A comprehensive sentiment analysis library with multi-provider LLM support, 

5web scraping capabilities, and emotion detection. 

6 

7Example: 

8 >>> from sentimatrix import Sentimatrix 

9 >>> sm = Sentimatrix() 

10 >>> result = await sm.analyze("This product is amazing!") 

11 >>> print(result.sentiment.label) # "positive" 

12""" 

13 

14from sentimatrix.core.config import ( 

15 CacheConfig, 

16 LLMConfig, 

17 LogConfig, 

18 ModelConfig, 

19 ProxyConfig, 

20 RateLimitConfig, 

21 RetryConfig, 

22 ScraperConfig, 

23 SentimatrixConfig, 

24) 

25from sentimatrix.core.exceptions import ( 

26 CacheError, 

27 ConfigurationError, 

28 ProviderError, 

29 RateLimitError, 

30 ScraperError, 

31 SentimatrixError, 

32 ValidationError, 

33) 

34from sentimatrix.core.logger import LogManager, get_logger 

35 

36__version__ = "0.2.0" 

37__author__ = "Sentimatrix Team" 

38__all__ = [ 

39 # Version 

40 "__version__", 

41 # Config classes 

42 "SentimatrixConfig", 

43 "LLMConfig", 

44 "ScraperConfig", 

45 "ModelConfig", 

46 "CacheConfig", 

47 "LogConfig", 

48 "ProxyConfig", 

49 "RateLimitConfig", 

50 "RetryConfig", 

51 # Exceptions 

52 "SentimatrixError", 

53 "ConfigurationError", 

54 "ProviderError", 

55 "ScraperError", 

56 "ValidationError", 

57 "CacheError", 

58 "RateLimitError", 

59 # Logger 

60 "LogManager", 

61 "get_logger", 

62]