channel3-sdk 0.1.12__py3-none-any.whl → 0.2.0__py3-none-any.whl
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.
Potentially problematic release.
This version of channel3-sdk might be problematic. Click here for more details.
channel3_sdk/client.py
CHANGED
|
@@ -86,7 +86,7 @@ class Channel3Client(BaseChannel3Client):
|
|
|
86
86
|
query: Optional[str] = None,
|
|
87
87
|
image_url: Optional[str] = None,
|
|
88
88
|
base64_image: Optional[str] = None,
|
|
89
|
-
filters: Optional[
|
|
89
|
+
filters: Optional[SearchFilters] = None,
|
|
90
90
|
limit: int = 20,
|
|
91
91
|
) -> List[Product]:
|
|
92
92
|
"""
|
|
@@ -96,7 +96,7 @@ class Channel3Client(BaseChannel3Client):
|
|
|
96
96
|
query: Text search query
|
|
97
97
|
image_url: URL to an image to use for visual search
|
|
98
98
|
base64_image: Base64-encoded image to use for visual search
|
|
99
|
-
filters: Search filters (SearchFilters object
|
|
99
|
+
filters: Search filters (SearchFilters object)
|
|
100
100
|
limit: Maximum number of products to return (default: 20)
|
|
101
101
|
|
|
102
102
|
Returns:
|
|
@@ -118,7 +118,7 @@ class Channel3Client(BaseChannel3Client):
|
|
|
118
118
|
|
|
119
119
|
# Multimodal search with filters
|
|
120
120
|
from channel3_sdk.models import SearchFilters
|
|
121
|
-
filters = SearchFilters(
|
|
121
|
+
filters = SearchFilters(min_price=50.0, max_price=150.0)
|
|
122
122
|
products = client.search(query="denim jacket", filters=filters)
|
|
123
123
|
```
|
|
124
124
|
"""
|
|
@@ -127,7 +127,7 @@ class Channel3Client(BaseChannel3Client):
|
|
|
127
127
|
query=query,
|
|
128
128
|
image_url=image_url,
|
|
129
129
|
base64_image=base64_image,
|
|
130
|
-
filters=filters
|
|
130
|
+
filters=filters,
|
|
131
131
|
limit=limit,
|
|
132
132
|
)
|
|
133
133
|
|
channel3_sdk/models.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""Pydantic models for the Channel3 API."""
|
|
2
2
|
|
|
3
3
|
from enum import Enum
|
|
4
|
-
from typing import List, Optional,
|
|
4
|
+
from typing import List, Optional, Literal
|
|
5
5
|
from pydantic import BaseModel, Field
|
|
6
6
|
|
|
7
7
|
|
|
@@ -79,6 +79,12 @@ class ProductDetail(BaseModel):
|
|
|
79
79
|
availability: AvailabilityStatus = Field(
|
|
80
80
|
..., description="Product availability status"
|
|
81
81
|
)
|
|
82
|
+
gender: Optional[Literal["unisex", "men", "women"]] = Field(
|
|
83
|
+
None, description="Gender of the product, if applicable"
|
|
84
|
+
)
|
|
85
|
+
materials: Optional[List[str]] = Field(
|
|
86
|
+
None, description="List of materials, if applicable"
|
|
87
|
+
)
|
|
82
88
|
key_features: Optional[List[str]] = Field(
|
|
83
89
|
None, description="List of key product features"
|
|
84
90
|
)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
channel3_sdk/__init__.py,sha256=vMrsZwY59OoYmoPwEnZ0kuAuWFkOIERUaoy0lWpGIlc,976
|
|
2
|
+
channel3_sdk/client.py,sha256=wNqM9d7M2eiWOZ0Xp9rJGjINUrsaHYXiBJktBfPD-18,20776
|
|
3
|
+
channel3_sdk/exceptions.py,sha256=5HJgrhir4-_b4XKyWAB9qp-CjVZeigXSkyM9fbcB1IA,1044
|
|
4
|
+
channel3_sdk/models.py,sha256=yxWVyYurAJ1__WsaNbz73nXz4vLX7aunDeftBG4dUw0,4760
|
|
5
|
+
channel3_sdk-0.2.0.dist-info/METADATA,sha256=8wc_TzynUtX56st3wWe0R4cBe59U9RaJbW1coJm5eaU,7799
|
|
6
|
+
channel3_sdk-0.2.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
7
|
+
channel3_sdk-0.2.0.dist-info/RECORD,,
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
channel3_sdk/__init__.py,sha256=vMrsZwY59OoYmoPwEnZ0kuAuWFkOIERUaoy0lWpGIlc,976
|
|
2
|
-
channel3_sdk/client.py,sha256=8klt__VDUerEO6qq8-RA3w8CSImE6tfPf1v8m25_aS4,20843
|
|
3
|
-
channel3_sdk/exceptions.py,sha256=5HJgrhir4-_b4XKyWAB9qp-CjVZeigXSkyM9fbcB1IA,1044
|
|
4
|
-
channel3_sdk/models.py,sha256=PdFD-sESRhlZSsvVIHHlhwn-Zi5QbGcUiHo0NnP_Gqs,4520
|
|
5
|
-
channel3_sdk-0.1.12.dist-info/METADATA,sha256=fflKnYaOYNhHohAMm7_MvdDgxBxOHZfXtJCYsbwj4FA,7800
|
|
6
|
-
channel3_sdk-0.1.12.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
7
|
-
channel3_sdk-0.1.12.dist-info/RECORD,,
|
|
File without changes
|