channel3-sdk 1.0.0__py3-none-any.whl → 2.1.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 (85) hide show
  1. channel3_sdk/__init__.py +94 -44
  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 +64 -0
  44. channel3_sdk/types/search_perform_response.py +36 -0
  45. channel3_sdk/types/variant.py +13 -0
  46. channel3_sdk-2.1.0.dist-info/METADATA +414 -0
  47. channel3_sdk-2.1.0.dist-info/RECORD +49 -0
  48. {channel3_sdk-1.0.0.dist-info → channel3_sdk-2.1.0.dist-info}/WHEEL +1 -1
  49. channel3_sdk-2.1.0.dist-info/licenses/LICENSE +201 -0
  50. channel3_sdk/_gen/.gitignore +0 -23
  51. channel3_sdk/_gen/README.md +0 -124
  52. channel3_sdk/_gen/fast_api_client/__init__.py +0 -8
  53. channel3_sdk/_gen/fast_api_client/api/__init__.py +0 -1
  54. channel3_sdk/_gen/fast_api_client/api/channel3_api/__init__.py +0 -1
  55. channel3_sdk/_gen/fast_api_client/api/channel3_api/get_brand_detail_v0_brands_brand_id_get.py +0 -179
  56. channel3_sdk/_gen/fast_api_client/api/channel3_api/get_brands_v0_brands_get.py +0 -218
  57. channel3_sdk/_gen/fast_api_client/api/channel3_api/get_product_detail_v0_products_product_id_get.py +0 -179
  58. channel3_sdk/_gen/fast_api_client/api/channel3_api/search_v0_search_post.py +0 -193
  59. channel3_sdk/_gen/fast_api_client/api/default/__init__.py +0 -1
  60. channel3_sdk/_gen/fast_api_client/api/default/root_get.py +0 -79
  61. channel3_sdk/_gen/fast_api_client/client.py +0 -268
  62. channel3_sdk/_gen/fast_api_client/errors.py +0 -16
  63. channel3_sdk/_gen/fast_api_client/models/__init__.py +0 -35
  64. channel3_sdk/_gen/fast_api_client/models/availability_status.py +0 -15
  65. channel3_sdk/_gen/fast_api_client/models/brand.py +0 -109
  66. channel3_sdk/_gen/fast_api_client/models/error_response.py +0 -59
  67. channel3_sdk/_gen/fast_api_client/models/paginated_response_brand.py +0 -83
  68. channel3_sdk/_gen/fast_api_client/models/pagination_meta.py +0 -84
  69. channel3_sdk/_gen/fast_api_client/models/price.py +0 -89
  70. channel3_sdk/_gen/fast_api_client/models/product.py +0 -166
  71. channel3_sdk/_gen/fast_api_client/models/product_detail.py +0 -306
  72. channel3_sdk/_gen/fast_api_client/models/product_detail_gender_type_0.py +0 -10
  73. channel3_sdk/_gen/fast_api_client/models/search_config.py +0 -69
  74. channel3_sdk/_gen/fast_api_client/models/search_filter_price.py +0 -92
  75. channel3_sdk/_gen/fast_api_client/models/search_filters.py +0 -191
  76. channel3_sdk/_gen/fast_api_client/models/search_filters_gender_type_0.py +0 -10
  77. channel3_sdk/_gen/fast_api_client/models/search_request.py +0 -191
  78. channel3_sdk/_gen/fast_api_client/models/variant.py +0 -75
  79. channel3_sdk/_gen/fast_api_client/py.typed +0 -1
  80. channel3_sdk/_gen/fast_api_client/types.py +0 -54
  81. channel3_sdk/_gen/pyproject.toml +0 -26
  82. channel3_sdk/client.py +0 -361
  83. channel3_sdk/exceptions.py +0 -48
  84. channel3_sdk-1.0.0.dist-info/METADATA +0 -341
  85. channel3_sdk-1.0.0.dist-info/RECORD +0 -38
channel3_sdk/__init__.py CHANGED
@@ -1,52 +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 ._gen.fast_api_client.models.availability_status import AvailabilityStatus
4
- from ._gen.fast_api_client.models.brand import Brand
5
- from ._gen.fast_api_client.models.paginated_response_brand import (
6
- PaginatedResponseBrand,
7
- )
3
+ import typing as _t
8
4
 
9
- # Re-export generated models so the public API returns exactly what the OpenAPI returns
10
- from ._gen.fast_api_client.models.pagination_meta import PaginationMeta
11
- from ._gen.fast_api_client.models.price import Price
12
- from ._gen.fast_api_client.models.product import Product
13
- from ._gen.fast_api_client.models.product_detail import ProductDetail
14
- from ._gen.fast_api_client.models.search_config import SearchConfig
15
- from ._gen.fast_api_client.models.search_filters import SearchFilters
16
- from ._gen.fast_api_client.models.search_request import SearchRequest
17
- from ._gen.fast_api_client.models.variant import Variant
18
- from .client import AsyncChannel3Client, Channel3Client
19
- from .exceptions import (
20
- Channel3AuthenticationError,
21
- Channel3ConnectionError,
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,
19
+ )
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,
22
26
  Channel3Error,
23
- Channel3NotFoundError,
24
- Channel3ServerError,
25
- Channel3ValidationError,
27
+ ConflictError,
28
+ NotFoundError,
29
+ APIStatusError,
30
+ RateLimitError,
31
+ APITimeoutError,
32
+ BadRequestError,
33
+ APIConnectionError,
34
+ AuthenticationError,
35
+ InternalServerError,
36
+ PermissionDeniedError,
37
+ UnprocessableEntityError,
38
+ APIResponseValidationError,
26
39
  )
40
+ from ._base_client import DefaultHttpxClient, DefaultAioHttpClient, DefaultAsyncHttpxClient
41
+ from ._utils._logs import setup_logging as _setup_logging
27
42
 
28
- __version__ = "1.0.0"
29
43
  __all__ = [
30
- # Clients
31
- "Channel3Client",
32
- "AsyncChannel3Client",
33
- # Models (generated)
34
- "Product",
35
- "ProductDetail",
36
- "SearchFilters",
37
- "SearchConfig",
38
- "SearchRequest",
39
- "Brand",
40
- "Variant",
41
- "Price",
42
- "AvailabilityStatus",
43
- "PaginatedResponseBrand",
44
- "PaginationMeta",
45
- # Exceptions
44
+ "types",
45
+ "__version__",
46
+ "__title__",
47
+ "NoneType",
48
+ "Transport",
49
+ "ProxiesTypes",
50
+ "NotGiven",
51
+ "NOT_GIVEN",
52
+ "Omit",
46
53
  "Channel3Error",
47
- "Channel3AuthenticationError",
48
- "Channel3ValidationError",
49
- "Channel3NotFoundError",
50
- "Channel3ServerError",
51
- "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",
52
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