channel3-sdk 0.2.2__py3-none-any.whl → 2.0.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.

Files changed (54) hide show
  1. channel3_sdk/__init__.py +94 -38
  2. channel3_sdk/_base_client.py +1995 -0
  3. channel3_sdk/_client.py +549 -0
  4. channel3_sdk/_compat.py +219 -0
  5. channel3_sdk/_constants.py +14 -0
  6. channel3_sdk/_exceptions.py +108 -0
  7. channel3_sdk/_files.py +123 -0
  8. channel3_sdk/_models.py +829 -0
  9. channel3_sdk/_qs.py +150 -0
  10. channel3_sdk/_resource.py +43 -0
  11. channel3_sdk/_response.py +832 -0
  12. channel3_sdk/_streaming.py +333 -0
  13. channel3_sdk/_types.py +253 -0
  14. channel3_sdk/_utils/__init__.py +64 -0
  15. channel3_sdk/_utils/_compat.py +45 -0
  16. channel3_sdk/_utils/_datetime_parse.py +136 -0
  17. channel3_sdk/_utils/_logs.py +25 -0
  18. channel3_sdk/_utils/_proxy.py +65 -0
  19. channel3_sdk/_utils/_reflection.py +42 -0
  20. channel3_sdk/_utils/_resources_proxy.py +24 -0
  21. channel3_sdk/_utils/_streams.py +12 -0
  22. channel3_sdk/_utils/_sync.py +86 -0
  23. channel3_sdk/_utils/_transform.py +457 -0
  24. channel3_sdk/_utils/_typing.py +156 -0
  25. channel3_sdk/_utils/_utils.py +421 -0
  26. channel3_sdk/_version.py +4 -0
  27. channel3_sdk/lib/.keep +4 -0
  28. channel3_sdk/py.typed +0 -0
  29. channel3_sdk/resources/__init__.py +61 -0
  30. channel3_sdk/resources/brands.py +268 -0
  31. channel3_sdk/resources/enrich.py +167 -0
  32. channel3_sdk/resources/products.py +163 -0
  33. channel3_sdk/resources/search.py +227 -0
  34. channel3_sdk/types/__init__.py +15 -0
  35. channel3_sdk/types/availability_status.py +9 -0
  36. channel3_sdk/types/brand.py +17 -0
  37. channel3_sdk/types/brand_list_params.py +16 -0
  38. channel3_sdk/types/brand_list_response.py +25 -0
  39. channel3_sdk/types/enrich_enrich_url_params.py +12 -0
  40. channel3_sdk/types/enrich_enrich_url_response.py +20 -0
  41. channel3_sdk/types/price.py +18 -0
  42. channel3_sdk/types/product_retrieve_response.py +39 -0
  43. channel3_sdk/types/search_perform_params.py +61 -0
  44. channel3_sdk/types/search_perform_response.py +36 -0
  45. channel3_sdk/types/variant.py +13 -0
  46. channel3_sdk-2.0.0.dist-info/METADATA +414 -0
  47. channel3_sdk-2.0.0.dist-info/RECORD +49 -0
  48. {channel3_sdk-0.2.2.dist-info → channel3_sdk-2.0.0.dist-info}/WHEEL +1 -1
  49. channel3_sdk-2.0.0.dist-info/licenses/LICENSE +201 -0
  50. channel3_sdk/client.py +0 -574
  51. channel3_sdk/exceptions.py +0 -48
  52. channel3_sdk/models.py +0 -135
  53. channel3_sdk-0.2.2.dist-info/METADATA +0 -284
  54. channel3_sdk-0.2.2.dist-info/RECORD +0 -7
channel3_sdk/__init__.py CHANGED
@@ -1,46 +1,102 @@
1
- """Channel3 SDK for Python - Official SDK for the Channel3 AI Shopping API."""
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- from .client import Channel3Client, AsyncChannel3Client
4
- from .models import (
5
- Product,
6
- ProductDetail,
7
- SearchFilters,
8
- SearchRequest,
9
- SearchFilterPrice,
10
- Brand,
11
- Variant,
12
- Price,
13
- AvailabilityStatus,
3
+ import typing as _t
4
+
5
+ from . import types
6
+ from ._types import NOT_GIVEN, Omit, NoneType, NotGiven, Transport, ProxiesTypes
7
+ from ._utils import file_from_path
8
+ from ._client import (
9
+ ENVIRONMENTS,
10
+ Client,
11
+ Stream,
12
+ Timeout,
13
+ Channel3,
14
+ Transport,
15
+ AsyncClient,
16
+ AsyncStream,
17
+ AsyncChannel3,
18
+ RequestOptions,
14
19
  )
15
- from .exceptions import (
20
+ from ._models import BaseModel
21
+ from ._version import __title__, __version__
22
+ from ._response import APIResponse as APIResponse, AsyncAPIResponse as AsyncAPIResponse
23
+ from ._constants import DEFAULT_TIMEOUT, DEFAULT_MAX_RETRIES, DEFAULT_CONNECTION_LIMITS
24
+ from ._exceptions import (
25
+ APIError,
16
26
  Channel3Error,
17
- Channel3AuthenticationError,
18
- Channel3ValidationError,
19
- Channel3NotFoundError,
20
- Channel3ServerError,
21
- Channel3ConnectionError,
27
+ ConflictError,
28
+ NotFoundError,
29
+ APIStatusError,
30
+ RateLimitError,
31
+ APITimeoutError,
32
+ BadRequestError,
33
+ APIConnectionError,
34
+ AuthenticationError,
35
+ InternalServerError,
36
+ PermissionDeniedError,
37
+ UnprocessableEntityError,
38
+ APIResponseValidationError,
22
39
  )
40
+ from ._base_client import DefaultHttpxClient, DefaultAioHttpClient, DefaultAsyncHttpxClient
41
+ from ._utils._logs import setup_logging as _setup_logging
23
42
 
24
- __version__ = "0.2.0"
25
43
  __all__ = [
26
- # Clients
27
- "Channel3Client",
28
- "AsyncChannel3Client",
29
- # Models
30
- "Product",
31
- "ProductDetail",
32
- "SearchFilters",
33
- "SearchRequest",
34
- "SearchFilterPrice",
35
- "Brand",
36
- "Variant",
37
- "Price",
38
- "AvailabilityStatus",
39
- # Exceptions
44
+ "types",
45
+ "__version__",
46
+ "__title__",
47
+ "NoneType",
48
+ "Transport",
49
+ "ProxiesTypes",
50
+ "NotGiven",
51
+ "NOT_GIVEN",
52
+ "Omit",
40
53
  "Channel3Error",
41
- "Channel3AuthenticationError",
42
- "Channel3ValidationError",
43
- "Channel3NotFoundError",
44
- "Channel3ServerError",
45
- "Channel3ConnectionError",
54
+ "APIError",
55
+ "APIStatusError",
56
+ "APITimeoutError",
57
+ "APIConnectionError",
58
+ "APIResponseValidationError",
59
+ "BadRequestError",
60
+ "AuthenticationError",
61
+ "PermissionDeniedError",
62
+ "NotFoundError",
63
+ "ConflictError",
64
+ "UnprocessableEntityError",
65
+ "RateLimitError",
66
+ "InternalServerError",
67
+ "Timeout",
68
+ "RequestOptions",
69
+ "Client",
70
+ "AsyncClient",
71
+ "Stream",
72
+ "AsyncStream",
73
+ "Channel3",
74
+ "AsyncChannel3",
75
+ "ENVIRONMENTS",
76
+ "file_from_path",
77
+ "BaseModel",
78
+ "DEFAULT_TIMEOUT",
79
+ "DEFAULT_MAX_RETRIES",
80
+ "DEFAULT_CONNECTION_LIMITS",
81
+ "DefaultHttpxClient",
82
+ "DefaultAsyncHttpxClient",
83
+ "DefaultAioHttpClient",
46
84
  ]
85
+
86
+ if not _t.TYPE_CHECKING:
87
+ from ._utils._resources_proxy import resources as resources
88
+
89
+ _setup_logging()
90
+
91
+ # Update the __module__ attribute for exported symbols so that
92
+ # error messages point to this module instead of the module
93
+ # it was originally defined in, e.g.
94
+ # channel3_sdk._exceptions.NotFoundError -> channel3_sdk.NotFoundError
95
+ __locals = locals()
96
+ for __name in __all__:
97
+ if not __name.startswith("__"):
98
+ try:
99
+ __locals[__name].__module__ = "channel3_sdk"
100
+ except (TypeError, AttributeError):
101
+ # Some of our exported symbols are builtins which we can't set attributes for.
102
+ pass