raindrop-ai 0.0.22__tar.gz → 0.0.24__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.
- {raindrop_ai-0.0.22 → raindrop_ai-0.0.24}/PKG-INFO +2 -2
- {raindrop_ai-0.0.22 → raindrop_ai-0.0.24}/pyproject.toml +2 -2
- {raindrop_ai-0.0.22 → raindrop_ai-0.0.24}/raindrop/analytics.py +5 -2
- {raindrop_ai-0.0.22 → raindrop_ai-0.0.24}/raindrop/models.py +1 -0
- {raindrop_ai-0.0.22 → raindrop_ai-0.0.24}/README.md +0 -0
- {raindrop_ai-0.0.22 → raindrop_ai-0.0.24}/raindrop/__init__.py +0 -0
- {raindrop_ai-0.0.22 → raindrop_ai-0.0.24}/raindrop/interaction.py +0 -0
- {raindrop_ai-0.0.22 → raindrop_ai-0.0.24}/raindrop/version.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: raindrop-ai
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.24
|
|
4
4
|
Summary: Raindrop AI (Python SDK)
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: Raindrop AI
|
|
@@ -10,7 +10,7 @@ Classifier: License :: OSI Approved :: MIT License
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.11
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.12
|
|
13
|
-
Requires-Dist: pydantic (>=2.
|
|
13
|
+
Requires-Dist: pydantic (>=2.09,<3)
|
|
14
14
|
Requires-Dist: requests (>=2.32.3,<3.0.0)
|
|
15
15
|
Description-Content-Type: text/markdown
|
|
16
16
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "raindrop-ai"
|
|
3
|
-
version = "0.0.
|
|
3
|
+
version = "0.0.24"
|
|
4
4
|
description = "Raindrop AI (Python SDK)"
|
|
5
5
|
authors = ["Raindrop AI <sdk@raindrop.ai>"]
|
|
6
6
|
license = "MIT"
|
|
@@ -9,7 +9,7 @@ packages = [{include = "raindrop"}]
|
|
|
9
9
|
|
|
10
10
|
[tool.poetry.dependencies]
|
|
11
11
|
python = ">=3.11,<3.12.1 || >3.12.1,<4.0"
|
|
12
|
-
pydantic = ">=2.
|
|
12
|
+
pydantic = ">=2.09,<3"
|
|
13
13
|
requests = "^2.32.3"
|
|
14
14
|
|
|
15
15
|
|
|
@@ -22,7 +22,7 @@ logger = logging.getLogger(__name__)
|
|
|
22
22
|
|
|
23
23
|
write_key = None
|
|
24
24
|
api_url = "https://api.raindrop.ai/v1/"
|
|
25
|
-
max_queue_size =
|
|
25
|
+
max_queue_size = 10_000
|
|
26
26
|
upload_size = 10
|
|
27
27
|
upload_interval = 1.0
|
|
28
28
|
buffer = []
|
|
@@ -240,7 +240,8 @@ def track_signal(
|
|
|
240
240
|
properties: Optional[Dict[str, Any]] = None,
|
|
241
241
|
attachment_id: Optional[str] = None,
|
|
242
242
|
comment: Optional[str] = None,
|
|
243
|
-
after: Optional[str] = None
|
|
243
|
+
after: Optional[str] = None,
|
|
244
|
+
sentiment: Optional[Literal["POSITIVE", "NEGATIVE"]] = None,
|
|
244
245
|
) -> None:
|
|
245
246
|
"""
|
|
246
247
|
Track a signal event.
|
|
@@ -254,6 +255,7 @@ def track_signal(
|
|
|
254
255
|
attachment_id: Optional ID of an attachment
|
|
255
256
|
comment: Optional comment string (required and used only if signal_type is 'feedback').
|
|
256
257
|
after: Optional after content string (required and used only if signal_type is 'edit').
|
|
258
|
+
sentiment: Optional sentiment indicating if the signal is POSITIVE (default is NEGATIVE)
|
|
257
259
|
"""
|
|
258
260
|
if not _check_write_key():
|
|
259
261
|
return
|
|
@@ -276,6 +278,7 @@ def track_signal(
|
|
|
276
278
|
"timestamp": timestamp or _get_timestamp(),
|
|
277
279
|
"properties": final_properties,
|
|
278
280
|
"attachment_id": attachment_id,
|
|
281
|
+
"sentiment": sentiment
|
|
279
282
|
}
|
|
280
283
|
|
|
281
284
|
try:
|
|
@@ -65,6 +65,7 @@ class BaseSignal(_Base):
|
|
|
65
65
|
)
|
|
66
66
|
properties: Dict[str, Any] = Field(default_factory=dict)
|
|
67
67
|
attachment_id: Optional[str] = None
|
|
68
|
+
sentiment: Optional[Literal["POSITIVE", "NEGATIVE"]] = None
|
|
68
69
|
|
|
69
70
|
@field_validator("event_id", "signal_name")
|
|
70
71
|
def _non_empty_strings(cls, v, info):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|