trendscout 0.2.1__tar.gz → 0.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,68 @@
1
+ Metadata-Version: 2.4
2
+ Name: trendscout
3
+ Version: 0.3.0
4
+ Summary: AI-Powered Market Trend Analysis & Sentiment
5
+ Author-email: Teyfik OZ <teyfikoz@yahoo.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/teyfikoz/trendscout
8
+ Project-URL: Repository, https://github.com/teyfikoz/trendscout
9
+ Project-URL: Issues, https://github.com/teyfikoz/trendscout/issues
10
+ Keywords: trends,sentiment,market-analysis,nlp,scraping
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Topic :: Scientific/Engineering :: Information Analysis
19
+ Requires-Python: >=3.10
20
+ Description-Content-Type: text/markdown
21
+ Requires-Dist: beautifulsoup4>=4.12.0
22
+ Requires-Dist: pandas>=2.0.0
23
+ Requires-Dist: requests>=2.31.0
24
+ Requires-Dist: textblob>=0.17.0
25
+ Provides-Extra: dev
26
+ Requires-Dist: pytest>=7.0; extra == "dev"
27
+ Requires-Dist: ruff>=0.1.0; extra == "dev"
28
+
29
+ # TrendScout
30
+
31
+ AI-Powered Market Trend Analysis & Sentiment.
32
+
33
+ [![PyPI version](https://badge.fury.io/py/trendscout.svg)](https://pypi.org/project/trendscout/)
34
+ [![CI](https://github.com/teyfikoz/trendscout/actions/workflows/ci.yml/badge.svg)](https://github.com/teyfikoz/trendscout/actions/workflows/ci.yml)
35
+
36
+ ## Installation
37
+
38
+ ```bash
39
+ pip install trendscout
40
+ ```
41
+
42
+ ## Quick Start
43
+
44
+ ```python
45
+ from trendscout import TrendScout
46
+
47
+ ts = TrendScout()
48
+
49
+ # Analyze sentiment
50
+ result = ts.analyze_sentiment("The market is looking very strong today!")
51
+ print(result.label) # "bullish"
52
+ print(result.polarity) # 0.xx
53
+ print(result.confidence) # 0.xx
54
+
55
+ # Get trending topics (mock data in current version)
56
+ trends = ts.get_emerging_trends(domain="technology", limit=5)
57
+ print(trends)
58
+ ```
59
+
60
+ ## Features
61
+
62
+ - **Sentiment Analysis** - TextBlob-based polarity and subjectivity scoring
63
+ - **Trend Scraping** - Mock data with extensible scraping framework
64
+ - **DataFrame Analysis** - Batch sentiment analysis on pandas DataFrames
65
+
66
+ ## License
67
+
68
+ MIT
@@ -0,0 +1,40 @@
1
+ # TrendScout
2
+
3
+ AI-Powered Market Trend Analysis & Sentiment.
4
+
5
+ [![PyPI version](https://badge.fury.io/py/trendscout.svg)](https://pypi.org/project/trendscout/)
6
+ [![CI](https://github.com/teyfikoz/trendscout/actions/workflows/ci.yml/badge.svg)](https://github.com/teyfikoz/trendscout/actions/workflows/ci.yml)
7
+
8
+ ## Installation
9
+
10
+ ```bash
11
+ pip install trendscout
12
+ ```
13
+
14
+ ## Quick Start
15
+
16
+ ```python
17
+ from trendscout import TrendScout
18
+
19
+ ts = TrendScout()
20
+
21
+ # Analyze sentiment
22
+ result = ts.analyze_sentiment("The market is looking very strong today!")
23
+ print(result.label) # "bullish"
24
+ print(result.polarity) # 0.xx
25
+ print(result.confidence) # 0.xx
26
+
27
+ # Get trending topics (mock data in current version)
28
+ trends = ts.get_emerging_trends(domain="technology", limit=5)
29
+ print(trends)
30
+ ```
31
+
32
+ ## Features
33
+
34
+ - **Sentiment Analysis** - TextBlob-based polarity and subjectivity scoring
35
+ - **Trend Scraping** - Mock data with extensible scraping framework
36
+ - **DataFrame Analysis** - Batch sentiment analysis on pandas DataFrames
37
+
38
+ ## License
39
+
40
+ MIT
@@ -0,0 +1,54 @@
1
+ [build-system]
2
+ requires = ["setuptools>=65.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "trendscout"
7
+ version = "0.3.0"
8
+ description = "AI-Powered Market Trend Analysis & Sentiment"
9
+ readme = "README.md"
10
+ authors = [
11
+ { name = "Teyfik OZ", email = "teyfikoz@yahoo.com" }
12
+ ]
13
+ license = {text = "MIT"}
14
+ classifiers = [
15
+ "Development Status :: 3 - Alpha",
16
+ "Intended Audience :: Developers",
17
+ "Programming Language :: Python :: 3",
18
+ "Programming Language :: Python :: 3.10",
19
+ "Programming Language :: Python :: 3.11",
20
+ "Programming Language :: Python :: 3.12",
21
+ "Programming Language :: Python :: 3.13",
22
+ "Topic :: Scientific/Engineering :: Information Analysis",
23
+ ]
24
+ keywords = ["trends", "sentiment", "market-analysis", "nlp", "scraping"]
25
+ requires-python = ">=3.10"
26
+ dependencies = [
27
+ "beautifulsoup4>=4.12.0",
28
+ "pandas>=2.0.0",
29
+ "requests>=2.31.0",
30
+ "textblob>=0.17.0",
31
+ ]
32
+
33
+ [project.optional-dependencies]
34
+ dev = [
35
+ "pytest>=7.0",
36
+ "ruff>=0.1.0",
37
+ ]
38
+
39
+ [project.urls]
40
+ Homepage = "https://github.com/teyfikoz/trendscout"
41
+ Repository = "https://github.com/teyfikoz/trendscout"
42
+ Issues = "https://github.com/teyfikoz/trendscout/issues"
43
+
44
+ [tool.setuptools.packages.find]
45
+ where = ["."]
46
+ include = ["trendscout*"]
47
+
48
+ [tool.ruff]
49
+ line-length = 100
50
+ target-version = "py310"
51
+
52
+ [tool.ruff.lint]
53
+ select = ["E", "F", "W", "I"]
54
+ ignore = ["E501"]
@@ -0,0 +1,56 @@
1
+ """Basic tests for TrendScout package."""
2
+
3
+ import pytest
4
+ import pandas as pd
5
+
6
+
7
+ def test_import():
8
+ """Test that trendscout can be imported."""
9
+ import trendscout
10
+ assert hasattr(trendscout, "__version__")
11
+ assert trendscout.__version__ == "0.3.0"
12
+
13
+
14
+ def test_sentiment_analyzer():
15
+ """Test SentimentAnalyzer basic functionality."""
16
+ from trendscout import SentimentAnalyzer
17
+
18
+ analyzer = SentimentAnalyzer()
19
+ result = analyzer.analyze("This is a great product!")
20
+ assert "polarity" in result
21
+ assert "subjectivity" in result
22
+ assert isinstance(result["polarity"], float)
23
+
24
+
25
+ def test_trend_scraper():
26
+ """Test TrendScraper returns DataFrame."""
27
+ from trendscout import TrendScraper
28
+
29
+ scraper = TrendScraper(use_mock=True)
30
+ df = scraper.get_trends("technology")
31
+ assert isinstance(df, pd.DataFrame)
32
+ assert "title" in df.columns
33
+ assert len(df) > 0
34
+
35
+
36
+ def test_trendscout_facade():
37
+ """Test TrendScout facade class."""
38
+ from trendscout import TrendScout
39
+
40
+ ts = TrendScout()
41
+ result = ts.analyze_sentiment("The market is booming!")
42
+ assert hasattr(result, "polarity")
43
+ assert hasattr(result, "label")
44
+ assert hasattr(result, "confidence")
45
+ assert result.label in ("bullish", "bearish", "neutral")
46
+
47
+
48
+ def test_sentiment_dataframe():
49
+ """Test sentiment analysis on DataFrame."""
50
+ from trendscout import SentimentAnalyzer
51
+
52
+ analyzer = SentimentAnalyzer()
53
+ df = pd.DataFrame({"text": ["Great!", "Terrible!", "Okay"]})
54
+ result = analyzer.analyze_dataframe(df, "text")
55
+ assert "sentiment" in result.columns
56
+ assert "sentiment_label" in result.columns
@@ -2,11 +2,20 @@
2
2
  TrendScout - AI-Powered Market Trend Analysis
3
3
  """
4
4
 
5
- __version__ = "0.2.1"
5
+ __version__ = "0.3.0"
6
6
 
7
7
  from .scraper import TrendScraper
8
8
  from .sentiment import SentimentAnalyzer
9
9
 
10
+ class SentimentResult:
11
+ """Wrapper for sentiment analysis result."""
12
+ def __init__(self, data: dict):
13
+ self.polarity = data.get('polarity', 0.0)
14
+ self.subjectivity = data.get('subjectivity', 0.0)
15
+ self.label = "bullish" if self.polarity > 0.1 else ("bearish" if self.polarity < -0.1 else "neutral")
16
+ self.confidence = 0.95 if abs(self.polarity) > 0.5 else 0.85
17
+ self.entities = []
18
+
10
19
  class TrendScout:
11
20
  """
12
21
  Central facade for TrendScout library.
@@ -16,9 +25,11 @@ class TrendScout:
16
25
  self.scraper = TrendScraper()
17
26
  self.analyzer = SentimentAnalyzer()
18
27
 
19
- def analyze_sentiment(self, text: str, domain: str = "general"):
28
+ def analyze_sentiment(self, text: str, domain: str = "general") -> SentimentResult:
20
29
  """Analyzes sentiment of text within a specific domain."""
21
- return self.analyzer.analyze(text, domain=domain)
30
+ # Note: domain is ignored in v0.2.2 as underlying analyzer is generic
31
+ data = self.analyzer.analyze(text)
32
+ return SentimentResult(data)
22
33
 
23
34
  def get_emerging_trends(self, domain: str = "general", limit: int = 5):
24
35
  """Identifies emerging trends for a domain."""
@@ -0,0 +1,68 @@
1
+ Metadata-Version: 2.4
2
+ Name: trendscout
3
+ Version: 0.3.0
4
+ Summary: AI-Powered Market Trend Analysis & Sentiment
5
+ Author-email: Teyfik OZ <teyfikoz@yahoo.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/teyfikoz/trendscout
8
+ Project-URL: Repository, https://github.com/teyfikoz/trendscout
9
+ Project-URL: Issues, https://github.com/teyfikoz/trendscout/issues
10
+ Keywords: trends,sentiment,market-analysis,nlp,scraping
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Topic :: Scientific/Engineering :: Information Analysis
19
+ Requires-Python: >=3.10
20
+ Description-Content-Type: text/markdown
21
+ Requires-Dist: beautifulsoup4>=4.12.0
22
+ Requires-Dist: pandas>=2.0.0
23
+ Requires-Dist: requests>=2.31.0
24
+ Requires-Dist: textblob>=0.17.0
25
+ Provides-Extra: dev
26
+ Requires-Dist: pytest>=7.0; extra == "dev"
27
+ Requires-Dist: ruff>=0.1.0; extra == "dev"
28
+
29
+ # TrendScout
30
+
31
+ AI-Powered Market Trend Analysis & Sentiment.
32
+
33
+ [![PyPI version](https://badge.fury.io/py/trendscout.svg)](https://pypi.org/project/trendscout/)
34
+ [![CI](https://github.com/teyfikoz/trendscout/actions/workflows/ci.yml/badge.svg)](https://github.com/teyfikoz/trendscout/actions/workflows/ci.yml)
35
+
36
+ ## Installation
37
+
38
+ ```bash
39
+ pip install trendscout
40
+ ```
41
+
42
+ ## Quick Start
43
+
44
+ ```python
45
+ from trendscout import TrendScout
46
+
47
+ ts = TrendScout()
48
+
49
+ # Analyze sentiment
50
+ result = ts.analyze_sentiment("The market is looking very strong today!")
51
+ print(result.label) # "bullish"
52
+ print(result.polarity) # 0.xx
53
+ print(result.confidence) # 0.xx
54
+
55
+ # Get trending topics (mock data in current version)
56
+ trends = ts.get_emerging_trends(domain="technology", limit=5)
57
+ print(trends)
58
+ ```
59
+
60
+ ## Features
61
+
62
+ - **Sentiment Analysis** - TextBlob-based polarity and subjectivity scoring
63
+ - **Trend Scraping** - Mock data with extensible scraping framework
64
+ - **DataFrame Analysis** - Batch sentiment analysis on pandas DataFrames
65
+
66
+ ## License
67
+
68
+ MIT
@@ -0,0 +1,11 @@
1
+ README.md
2
+ pyproject.toml
3
+ tests/test_basic.py
4
+ trendscout/__init__.py
5
+ trendscout/scraper.py
6
+ trendscout/sentiment.py
7
+ trendscout.egg-info/PKG-INFO
8
+ trendscout.egg-info/SOURCES.txt
9
+ trendscout.egg-info/dependency_links.txt
10
+ trendscout.egg-info/requires.txt
11
+ trendscout.egg-info/top_level.txt
@@ -0,0 +1,8 @@
1
+ beautifulsoup4>=4.12.0
2
+ pandas>=2.0.0
3
+ requests>=2.31.0
4
+ textblob>=0.17.0
5
+
6
+ [dev]
7
+ pytest>=7.0
8
+ ruff>=0.1.0
trendscout-0.2.1/PKG-INFO DELETED
@@ -1,127 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: trendscout
3
- Version: 0.2.1
4
- Summary: AI-Powered Market Trend Analysis & Sentinel
5
- Requires-Python: >=3.8
6
- Description-Content-Type: text/markdown
7
- Requires-Dist: requests
8
- Requires-Dist: pandas
9
- Requires-Dist: beautifulsoup4
10
- Requires-Dist: textblob
11
- Dynamic: description
12
- Dynamic: description-content-type
13
- Dynamic: requires-dist
14
- Dynamic: requires-python
15
- Dynamic: summary
16
-
17
- # 📈 TrendScout: AI Market Intelligence & Sentiment Analysis
18
-
19
- [![PyPI version](https://img.shields.io/pypi/v/trendscout.svg)](https://pypi.org/project/trendscout/)
20
- [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
21
-
22
- **TrendScout** is a high-performance library for real-time market trend spotting and sentiment intelligence. By analyzing textual data and search patterns, it provides businesses and developers with actionable insights into market shifts and consumer sentiment.
23
-
24
- ---
25
-
26
- ## 🌟 Vision
27
- To provide a cutting-edge intelligence layer that transforms social and market "noise" into clear, data-driven signals for strategic decision-making.
28
-
29
- ## 🚀 Key Features
30
-
31
- - **🧠 Sentiment Intelligence**: Advanced NLP engine that detects not just polarity, but emotional nuances in text.
32
- - **🛰️ Trend Spotting**: Automated identification of emerging topics and market keywords.
33
- - **📊 Market Volatility Tracking**: Measure the stability of trends over time with high-precision metrics.
34
- - **🌍 Multi-Domain Support**: Tailored models for Finance, Travel, Tech, and E-commerce.
35
- - **⚡ Real-time Processing**: Optimized for high-throughput stream analysis.
36
-
37
- ---
38
-
39
- ## 📦 Installation
40
-
41
- ```bash
42
- pip install trendscout
43
- ```
44
-
45
- ---
46
-
47
- ## 🛠️ Premium Usage
48
-
49
- ### 1. Market Sentiment Analysis
50
- Analyze the sentiment of market news or social chatter with high confidence.
51
-
52
- ```python
53
- from trendscout import TrendScout
54
-
55
- # Initialize the scout
56
- scout = TrendScout()
57
-
58
- # 1. Analyze Sentiment for a specific domain
59
- analysis = scout.analyze_sentiment(
60
- text="Solar energy stocks are reaching an all-time high as demand surcharges.",
61
- domain="finance"
62
- )
63
-
64
- print(f"Sentiment: {analysis.label}")
65
- print(f"Confidence: {analysis.confidence:.2f}")
66
- print(f"Key Entities: {analysis.entities}")
67
-
68
- # 2. Get Trend Volatility
69
- volatility = scout.get_trend_volatility("Solar Energy")
70
- print(f"Trend Volatility: {volatility.score:.2f} (Stability: {volatility.status})")
71
- ```
72
-
73
- #### ✅ Verified Output
74
- ```text
75
- Sentiment: bullish
76
- Confidence: 0.96
77
- Key Entities: ['Solar energy', 'stocks']
78
-
79
- Trend Volatility: 0.12 (Stability: stable)
80
- ```
81
-
82
- ### 2. Emerging Keyword Discovery
83
- Identify what's trending in your industry right now.
84
-
85
- ```python
86
- from trendscout import TrendScout
87
-
88
- scout = TrendScout()
89
-
90
- # Identify emerging tech trends
91
- trends = scout.get_emerging_trends(domain="tech", limit=5)
92
-
93
- for trend in trends:
94
- print(f"Trend: {trend.keyword} | Growth: +{trend.growth_percentage}%")
95
- ```
96
-
97
- #### ✅ Verified Output
98
- ```text
99
- Trend: Generative AI | Growth: +450%
100
- Trend: Quantum Networking | Growth: +120%
101
- Trend: Edge Computing | Growth: +85%
102
- ```
103
-
104
- ---
105
-
106
- ## 📊 API Reference
107
-
108
- ### `TrendScout` (Facade)
109
- - `analyze_sentiment(text, domain) -> SentimentResult`: Multi-domain sentiment engine.
110
- - `get_emerging_trends(domain, limit) -> List[Trend]`: Market discovery tool.
111
- - `get_trend_volatility(keyword) -> VolatilityScore`: Measure trend stability.
112
- - `track_keyword(keyword) -> Tracker`: Set up real-time monitoring.
113
-
114
- ### Core Modules
115
- - `SentimentEngine`: The brain behind NLP analysis.
116
- - `TrendTracker`: Time-series analysis of keyword frequency.
117
- - `MarketIntelligence`: High-level domain-specific insights.
118
-
119
- ---
120
-
121
- ## 🎨 Design Philosophy
122
- TrendScout is built on the **"Signal over Noise"** principle. In an era of data overload, we focus on high-confidence insights that lead to actual business value, rather than just raw data aggregation.
123
-
124
- ---
125
-
126
- ## 📄 License
127
- This project is licensed under the MIT License - see the LICENSE file for details.
@@ -1,111 +0,0 @@
1
- # 📈 TrendScout: AI Market Intelligence & Sentiment Analysis
2
-
3
- [![PyPI version](https://img.shields.io/pypi/v/trendscout.svg)](https://pypi.org/project/trendscout/)
4
- [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
5
-
6
- **TrendScout** is a high-performance library for real-time market trend spotting and sentiment intelligence. By analyzing textual data and search patterns, it provides businesses and developers with actionable insights into market shifts and consumer sentiment.
7
-
8
- ---
9
-
10
- ## 🌟 Vision
11
- To provide a cutting-edge intelligence layer that transforms social and market "noise" into clear, data-driven signals for strategic decision-making.
12
-
13
- ## 🚀 Key Features
14
-
15
- - **🧠 Sentiment Intelligence**: Advanced NLP engine that detects not just polarity, but emotional nuances in text.
16
- - **🛰️ Trend Spotting**: Automated identification of emerging topics and market keywords.
17
- - **📊 Market Volatility Tracking**: Measure the stability of trends over time with high-precision metrics.
18
- - **🌍 Multi-Domain Support**: Tailored models for Finance, Travel, Tech, and E-commerce.
19
- - **⚡ Real-time Processing**: Optimized for high-throughput stream analysis.
20
-
21
- ---
22
-
23
- ## 📦 Installation
24
-
25
- ```bash
26
- pip install trendscout
27
- ```
28
-
29
- ---
30
-
31
- ## 🛠️ Premium Usage
32
-
33
- ### 1. Market Sentiment Analysis
34
- Analyze the sentiment of market news or social chatter with high confidence.
35
-
36
- ```python
37
- from trendscout import TrendScout
38
-
39
- # Initialize the scout
40
- scout = TrendScout()
41
-
42
- # 1. Analyze Sentiment for a specific domain
43
- analysis = scout.analyze_sentiment(
44
- text="Solar energy stocks are reaching an all-time high as demand surcharges.",
45
- domain="finance"
46
- )
47
-
48
- print(f"Sentiment: {analysis.label}")
49
- print(f"Confidence: {analysis.confidence:.2f}")
50
- print(f"Key Entities: {analysis.entities}")
51
-
52
- # 2. Get Trend Volatility
53
- volatility = scout.get_trend_volatility("Solar Energy")
54
- print(f"Trend Volatility: {volatility.score:.2f} (Stability: {volatility.status})")
55
- ```
56
-
57
- #### ✅ Verified Output
58
- ```text
59
- Sentiment: bullish
60
- Confidence: 0.96
61
- Key Entities: ['Solar energy', 'stocks']
62
-
63
- Trend Volatility: 0.12 (Stability: stable)
64
- ```
65
-
66
- ### 2. Emerging Keyword Discovery
67
- Identify what's trending in your industry right now.
68
-
69
- ```python
70
- from trendscout import TrendScout
71
-
72
- scout = TrendScout()
73
-
74
- # Identify emerging tech trends
75
- trends = scout.get_emerging_trends(domain="tech", limit=5)
76
-
77
- for trend in trends:
78
- print(f"Trend: {trend.keyword} | Growth: +{trend.growth_percentage}%")
79
- ```
80
-
81
- #### ✅ Verified Output
82
- ```text
83
- Trend: Generative AI | Growth: +450%
84
- Trend: Quantum Networking | Growth: +120%
85
- Trend: Edge Computing | Growth: +85%
86
- ```
87
-
88
- ---
89
-
90
- ## 📊 API Reference
91
-
92
- ### `TrendScout` (Facade)
93
- - `analyze_sentiment(text, domain) -> SentimentResult`: Multi-domain sentiment engine.
94
- - `get_emerging_trends(domain, limit) -> List[Trend]`: Market discovery tool.
95
- - `get_trend_volatility(keyword) -> VolatilityScore`: Measure trend stability.
96
- - `track_keyword(keyword) -> Tracker`: Set up real-time monitoring.
97
-
98
- ### Core Modules
99
- - `SentimentEngine`: The brain behind NLP analysis.
100
- - `TrendTracker`: Time-series analysis of keyword frequency.
101
- - `MarketIntelligence`: High-level domain-specific insights.
102
-
103
- ---
104
-
105
- ## 🎨 Design Philosophy
106
- TrendScout is built on the **"Signal over Noise"** principle. In an era of data overload, we focus on high-confidence insights that lead to actual business value, rather than just raw data aggregation.
107
-
108
- ---
109
-
110
- ## 📄 License
111
- This project is licensed under the MIT License - see the LICENSE file for details.
trendscout-0.2.1/setup.py DELETED
@@ -1,22 +0,0 @@
1
- from setuptools import setup, find_packages
2
- from pathlib import Path
3
-
4
- this_directory = Path(__file__).parent
5
- long_description = (this_directory / "README.md").read_text()
6
-
7
- setup(
8
- name="trendscout",
9
- version="0.2.1",
10
- description="AI-Powered Market Trend Analysis & Sentinel",
11
- long_description=long_description,
12
- long_description_content_type='text/markdown',
13
- package_dir={"": "src"},
14
- packages=find_packages(where="src"),
15
- install_requires=[
16
- "requests",
17
- "pandas",
18
- "beautifulsoup4",
19
- "textblob", # Simple sentiment
20
- ],
21
- python_requires=">=3.8",
22
- )
@@ -1,127 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: trendscout
3
- Version: 0.2.1
4
- Summary: AI-Powered Market Trend Analysis & Sentinel
5
- Requires-Python: >=3.8
6
- Description-Content-Type: text/markdown
7
- Requires-Dist: requests
8
- Requires-Dist: pandas
9
- Requires-Dist: beautifulsoup4
10
- Requires-Dist: textblob
11
- Dynamic: description
12
- Dynamic: description-content-type
13
- Dynamic: requires-dist
14
- Dynamic: requires-python
15
- Dynamic: summary
16
-
17
- # 📈 TrendScout: AI Market Intelligence & Sentiment Analysis
18
-
19
- [![PyPI version](https://img.shields.io/pypi/v/trendscout.svg)](https://pypi.org/project/trendscout/)
20
- [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
21
-
22
- **TrendScout** is a high-performance library for real-time market trend spotting and sentiment intelligence. By analyzing textual data and search patterns, it provides businesses and developers with actionable insights into market shifts and consumer sentiment.
23
-
24
- ---
25
-
26
- ## 🌟 Vision
27
- To provide a cutting-edge intelligence layer that transforms social and market "noise" into clear, data-driven signals for strategic decision-making.
28
-
29
- ## 🚀 Key Features
30
-
31
- - **🧠 Sentiment Intelligence**: Advanced NLP engine that detects not just polarity, but emotional nuances in text.
32
- - **🛰️ Trend Spotting**: Automated identification of emerging topics and market keywords.
33
- - **📊 Market Volatility Tracking**: Measure the stability of trends over time with high-precision metrics.
34
- - **🌍 Multi-Domain Support**: Tailored models for Finance, Travel, Tech, and E-commerce.
35
- - **⚡ Real-time Processing**: Optimized for high-throughput stream analysis.
36
-
37
- ---
38
-
39
- ## 📦 Installation
40
-
41
- ```bash
42
- pip install trendscout
43
- ```
44
-
45
- ---
46
-
47
- ## 🛠️ Premium Usage
48
-
49
- ### 1. Market Sentiment Analysis
50
- Analyze the sentiment of market news or social chatter with high confidence.
51
-
52
- ```python
53
- from trendscout import TrendScout
54
-
55
- # Initialize the scout
56
- scout = TrendScout()
57
-
58
- # 1. Analyze Sentiment for a specific domain
59
- analysis = scout.analyze_sentiment(
60
- text="Solar energy stocks are reaching an all-time high as demand surcharges.",
61
- domain="finance"
62
- )
63
-
64
- print(f"Sentiment: {analysis.label}")
65
- print(f"Confidence: {analysis.confidence:.2f}")
66
- print(f"Key Entities: {analysis.entities}")
67
-
68
- # 2. Get Trend Volatility
69
- volatility = scout.get_trend_volatility("Solar Energy")
70
- print(f"Trend Volatility: {volatility.score:.2f} (Stability: {volatility.status})")
71
- ```
72
-
73
- #### ✅ Verified Output
74
- ```text
75
- Sentiment: bullish
76
- Confidence: 0.96
77
- Key Entities: ['Solar energy', 'stocks']
78
-
79
- Trend Volatility: 0.12 (Stability: stable)
80
- ```
81
-
82
- ### 2. Emerging Keyword Discovery
83
- Identify what's trending in your industry right now.
84
-
85
- ```python
86
- from trendscout import TrendScout
87
-
88
- scout = TrendScout()
89
-
90
- # Identify emerging tech trends
91
- trends = scout.get_emerging_trends(domain="tech", limit=5)
92
-
93
- for trend in trends:
94
- print(f"Trend: {trend.keyword} | Growth: +{trend.growth_percentage}%")
95
- ```
96
-
97
- #### ✅ Verified Output
98
- ```text
99
- Trend: Generative AI | Growth: +450%
100
- Trend: Quantum Networking | Growth: +120%
101
- Trend: Edge Computing | Growth: +85%
102
- ```
103
-
104
- ---
105
-
106
- ## 📊 API Reference
107
-
108
- ### `TrendScout` (Facade)
109
- - `analyze_sentiment(text, domain) -> SentimentResult`: Multi-domain sentiment engine.
110
- - `get_emerging_trends(domain, limit) -> List[Trend]`: Market discovery tool.
111
- - `get_trend_volatility(keyword) -> VolatilityScore`: Measure trend stability.
112
- - `track_keyword(keyword) -> Tracker`: Set up real-time monitoring.
113
-
114
- ### Core Modules
115
- - `SentimentEngine`: The brain behind NLP analysis.
116
- - `TrendTracker`: Time-series analysis of keyword frequency.
117
- - `MarketIntelligence`: High-level domain-specific insights.
118
-
119
- ---
120
-
121
- ## 🎨 Design Philosophy
122
- TrendScout is built on the **"Signal over Noise"** principle. In an era of data overload, we focus on high-confidence insights that lead to actual business value, rather than just raw data aggregation.
123
-
124
- ---
125
-
126
- ## 📄 License
127
- This project is licensed under the MIT License - see the LICENSE file for details.
@@ -1,10 +0,0 @@
1
- README.md
2
- setup.py
3
- src/trendscout/__init__.py
4
- src/trendscout/scraper.py
5
- src/trendscout/sentiment.py
6
- src/trendscout.egg-info/PKG-INFO
7
- src/trendscout.egg-info/SOURCES.txt
8
- src/trendscout.egg-info/dependency_links.txt
9
- src/trendscout.egg-info/requires.txt
10
- src/trendscout.egg-info/top_level.txt
@@ -1,4 +0,0 @@
1
- requests
2
- pandas
3
- beautifulsoup4
4
- textblob
File without changes