trendsagi 0.1.1__tar.gz → 0.1.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: trendsagi
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: The official Python client for the TrendsAGI API.
5
5
  Author-email: TrendsAGI <contact@trendsagi.com>
6
6
  License: MIT License
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
8
8
  name = "trendsagi"
9
- version = "0.1.1"
9
+ version = "0.1.2"
10
10
  authors = [
11
11
  { name="TrendsAGI", email="contact@trendsagi.com" },
12
12
  ]
@@ -57,6 +57,9 @@ class TrendsAGIClient:
57
57
 
58
58
  # --- Trends & Insights Methods ---
59
59
 
60
+ # --- START OF FIX ---
61
+ # Added start_date and end_date to the function signature.
62
+ # The `locals()` trick will automatically pick them up and add them to params if they are not None.
60
63
  def get_trends(
61
64
  self,
62
65
  search: Optional[str] = None,
@@ -65,8 +68,11 @@ class TrendsAGIClient:
65
68
  limit: int = 20,
66
69
  offset: int = 0,
67
70
  period: str = '24h',
68
- category: Optional[str] = None
71
+ category: Optional[str] = None,
72
+ start_date: Optional[str] = None,
73
+ end_date: Optional[str] = None
69
74
  ) -> models.TrendListResponse:
75
+ # --- END OF FIX ---
70
76
  """
71
77
  Retrieve a list of currently trending topics.
72
78
  """
@@ -140,7 +146,7 @@ class TrendsAGIClient:
140
146
  source_trend_query: Optional[str] = None, priority: Optional[str] = None, status: str = 'new'
141
147
  ) -> models.RecommendationListResponse:
142
148
  """
143
- Get actionable recommendations generated for the user.
149
+ Get actionable recommendations generated for the.
144
150
  """
145
151
  params = {
146
152
  "limit": limit, "offset": offset, "type": recommendation_type,
@@ -18,6 +18,12 @@ class PaginationMeta(OrmBaseModel):
18
18
  order: Optional[str] = None
19
19
  search: Optional[str] = None
20
20
  category: Optional[str] = None
21
+ # --- START OF FIX ---
22
+ # Add these optional fields to match the updated server response.
23
+ # They will be populated when a custom date range is used.
24
+ start_date: Optional[date] = None
25
+ end_date: Optional[date] = None
26
+ # --- END OF FIX ---
21
27
 
22
28
  # --- Trends & Insights Models ---
23
29
  class TrendItem(OrmBaseModel):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: trendsagi
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: The official Python client for the TrendsAGI API.
5
5
  Author-email: TrendsAGI <contact@trendsagi.com>
6
6
  License: MIT License
File without changes
File without changes
File without changes