creators 0.1.0__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.
Files changed (122) hide show
  1. creators-0.1.0/PKG-INFO +17 -0
  2. creators-0.1.0/README.md +4 -0
  3. creators-0.1.0/pyproject.toml +22 -0
  4. creators-0.1.0/src/creators/__init__.py +2 -0
  5. creators-0.1.0/src/creators/client.py +50 -0
  6. creators-0.1.0/src/creators/creatorsapi-python-sdk/.DS_Store +0 -0
  7. creators-0.1.0/src/creators/creatorsapi-python-sdk/LICENSE.txt +202 -0
  8. creators-0.1.0/src/creators/creatorsapi-python-sdk/NOTICE.txt +2 -0
  9. creators-0.1.0/src/creators/creatorsapi-python-sdk/README.md +54 -0
  10. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/__init__.py +128 -0
  11. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/api/__init__.py +5 -0
  12. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/api/default_api.py +2427 -0
  13. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/api_client.py +915 -0
  14. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/api_response.py +21 -0
  15. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/auth/__init__.py +21 -0
  16. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/auth/oauth2_config.py +139 -0
  17. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/auth/oauth2_token_manager.py +133 -0
  18. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/configuration.py +455 -0
  19. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/exceptions.py +204 -0
  20. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/__init__.py +111 -0
  21. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/access_denied_exception_response_content.py +97 -0
  22. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/access_denied_reason.py +45 -0
  23. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/availability.py +44 -0
  24. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/browse_node.py +116 -0
  25. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/browse_node_ancestor.py +103 -0
  26. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/browse_node_child.py +96 -0
  27. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/browse_node_info.py +106 -0
  28. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/browse_nodes_result.py +100 -0
  29. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/by_line_info.py +111 -0
  30. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/classifications.py +101 -0
  31. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/condition.py +44 -0
  32. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/content_info.py +113 -0
  33. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/content_rating.py +96 -0
  34. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/contributor.py +98 -0
  35. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/customer_reviews.py +98 -0
  36. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/deal_details.py +102 -0
  37. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/delivery_flag.py +46 -0
  38. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/dimension_based_attribute.py +111 -0
  39. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/error_data.py +94 -0
  40. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/external_ids.py +106 -0
  41. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/feed.py +98 -0
  42. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/get_browse_nodes_request_content.py +107 -0
  43. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/get_browse_nodes_resource.py +44 -0
  44. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/get_browse_nodes_response_content.py +106 -0
  45. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/get_feed_request_content.py +93 -0
  46. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/get_feed_response_content.py +92 -0
  47. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/get_items_request_content.py +124 -0
  48. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/get_items_resource.py +76 -0
  49. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/get_items_response_content.py +106 -0
  50. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/get_report_request_content.py +93 -0
  51. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/get_report_response_content.py +92 -0
  52. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/get_variations_request_content.py +135 -0
  53. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/get_variations_resource.py +79 -0
  54. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/get_variations_response_content.py +106 -0
  55. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/image_size.py +96 -0
  56. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/image_type.py +111 -0
  57. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/images.py +105 -0
  58. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/internal_server_exception_response_content.py +94 -0
  59. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/item.py +138 -0
  60. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/item_info.py +156 -0
  61. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/items_result.py +100 -0
  62. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/language_type.py +94 -0
  63. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/languages.py +104 -0
  64. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/list_feeds_response_content.py +100 -0
  65. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/list_reports_response_content.py +100 -0
  66. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/manufacture_info.py +106 -0
  67. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/money.py +96 -0
  68. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/multi_valued_attribute.py +96 -0
  69. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/offer_availability_v2.py +98 -0
  70. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/offer_condition_v2.py +96 -0
  71. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/offer_listing_v2.py +133 -0
  72. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/offer_loyalty_points_v2.py +92 -0
  73. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/offer_merchant_info_v2.py +94 -0
  74. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/offer_price_v2.py +113 -0
  75. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/offer_saving_basis.py +101 -0
  76. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/offer_savings.py +98 -0
  77. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/offer_type.py +45 -0
  78. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/offers_v2.py +100 -0
  79. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/product_info.py +124 -0
  80. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/rating.py +92 -0
  81. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/refinement.py +104 -0
  82. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/refinement_bin.py +94 -0
  83. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/report_metadata.py +98 -0
  84. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/resource_not_found_exception_response_content.py +98 -0
  85. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/saving_basis_type.py +46 -0
  86. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/search_items_request_content.py +242 -0
  87. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/search_items_resource.py +77 -0
  88. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/search_items_response_content.py +106 -0
  89. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/search_refinements.py +110 -0
  90. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/search_result.py +110 -0
  91. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/single_boolean_valued_attribute.py +96 -0
  92. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/single_integer_valued_attribute.py +96 -0
  93. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/single_string_valued_attribute.py +96 -0
  94. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/sort_by.py +48 -0
  95. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/technical_info.py +102 -0
  96. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/throttle_exception_response_content.py +98 -0
  97. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/trade_in_info.py +98 -0
  98. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/trade_in_price.py +96 -0
  99. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/unauthorized_exception_reason.py +51 -0
  100. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/unauthorized_exception_response_content.py +97 -0
  101. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/unit_based_attribute.py +98 -0
  102. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/validation_exception_field.py +94 -0
  103. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/validation_exception_reason.py +48 -0
  104. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/validation_exception_response_content.py +107 -0
  105. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/variation_attribute.py +94 -0
  106. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/variation_dimension.py +98 -0
  107. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/variation_summary.py +110 -0
  108. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/variation_summary_price.py +101 -0
  109. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/variations_result.py +106 -0
  110. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/models/website_sales_rank.py +98 -0
  111. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/py.typed +0 -0
  112. creators-0.1.0/src/creators/creatorsapi-python-sdk/creatorsapi_python_sdk/rest.py +262 -0
  113. creators-0.1.0/src/creators/creatorsapi-python-sdk/examples/sample_get_browse_nodes.py +81 -0
  114. creators-0.1.0/src/creators/creatorsapi-python-sdk/examples/sample_get_feed.py +67 -0
  115. creators-0.1.0/src/creators/creatorsapi-python-sdk/examples/sample_get_items.py +86 -0
  116. creators-0.1.0/src/creators/creatorsapi-python-sdk/examples/sample_get_report.py +68 -0
  117. creators-0.1.0/src/creators/creatorsapi-python-sdk/examples/sample_get_variations.py +90 -0
  118. creators-0.1.0/src/creators/creatorsapi-python-sdk/examples/sample_list_feeds.py +63 -0
  119. creators-0.1.0/src/creators/creatorsapi-python-sdk/examples/sample_list_reports.py +63 -0
  120. creators-0.1.0/src/creators/creatorsapi-python-sdk/examples/sample_search_items.py +91 -0
  121. creators-0.1.0/src/creators/creatorsapi-python-sdk/requirements.txt +6 -0
  122. creators-0.1.0/src/creators/models.py +119 -0
@@ -0,0 +1,17 @@
1
+ Metadata-Version: 2.3
2
+ Name: creators
3
+ Version: 0.1.0
4
+ Summary: Wrapper for amazon creators api
5
+ Requires-Dist: pydantic>=2
6
+ Requires-Dist: python-dateutil>=2.5.3
7
+ Requires-Dist: requests>=2.25.0
8
+ Requires-Dist: setuptools>=21.0.0
9
+ Requires-Dist: typing-extensions>=4.7.1
10
+ Requires-Dist: urllib3>=1.25.3,<2.1.0
11
+ Requires-Python: >=3.12
12
+ Description-Content-Type: text/markdown
13
+
14
+ # Amazon Creators API
15
+
16
+ - [Creators API Docs](https://affiliate-program.amazon.com/creatorsapi/docs/en-us/introduction)
17
+ - [Available SDKs](https://affiliate-program.amazon.com/creatorsapi/docs/en-us/get-started/using-sdk)
@@ -0,0 +1,4 @@
1
+ # Amazon Creators API
2
+
3
+ - [Creators API Docs](https://affiliate-program.amazon.com/creatorsapi/docs/en-us/introduction)
4
+ - [Available SDKs](https://affiliate-program.amazon.com/creatorsapi/docs/en-us/get-started/using-sdk)
@@ -0,0 +1,22 @@
1
+ [project]
2
+ name = "creators"
3
+ version = "0.1.0"
4
+ description = "Wrapper for amazon creators api"
5
+ readme = "README.md"
6
+ authors = []
7
+ requires-python = ">=3.12"
8
+ dependencies = [
9
+ "pydantic>=2",
10
+ "python-dateutil>=2.5.3",
11
+ "requests>=2.25.0",
12
+ "setuptools>=21.0.0",
13
+ "typing-extensions>=4.7.1",
14
+ "urllib3>=1.25.3,<2.1.0",
15
+ ]
16
+
17
+ [project.scripts]
18
+ creators = "creators:main"
19
+
20
+ [build-system]
21
+ requires = ["uv_build>=0.9.18,<0.10.0"]
22
+ build-backend = "uv_build"
@@ -0,0 +1,2 @@
1
+ def main() -> None:
2
+ print("Hello from creators!")
@@ -0,0 +1,50 @@
1
+ from creatorsapi_python_sdk.api.default_api import DefaultApi
2
+ from creatorsapi_python_sdk.api_client import ApiClient
3
+
4
+ from .models import *
5
+
6
+
7
+ class Client:
8
+
9
+ def __init__(
10
+ self,
11
+ credential_id: str,
12
+ credential_secret: str,
13
+ version: str,
14
+ marketplace: str,
15
+ partner_tag: str,
16
+ ):
17
+ api_client = ApiClient(
18
+ credential_id=credential_id,
19
+ credential_secret=credential_secret,
20
+ version=version,
21
+ )
22
+ self.api = DefaultApi(api_client)
23
+ self.marketplace = marketplace
24
+ self.partner_tag = partner_tag
25
+
26
+ def search_items(self, request: SearchItemsRequestContent) -> SearchItemsResponseContent:
27
+ if not request.partner_tag:
28
+ request.partner_tag = self.partner_tag
29
+ if not request.item_count:
30
+ request.item_count = 10
31
+ if not request.resources:
32
+ request.resources = list(SearchItemsResource)
33
+
34
+ return self.api.search_items(
35
+ x_marketplace=self.marketplace,
36
+ search_items_request_content=request,
37
+ )
38
+
39
+ def get_items(self, request: GetItemsRequestContent) -> GetItemsResponseContent:
40
+ if not request.partner_tag:
41
+ request.partner_tag = self.partner_tag
42
+ if not request.item_count:
43
+ request.item_count = 10
44
+ if not request.resources:
45
+ request.resources = list(GetItemsResource)
46
+
47
+ return self.api.get_items(
48
+ x_marketplace=self.marketplace,
49
+ get_items_request_content=request,
50
+ )
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,2 @@
1
+ Creators API 1.0 SDK for Python
2
+ Copyright 2025-2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
@@ -0,0 +1,54 @@
1
+ # Creators API Python SDK Example
2
+
3
+ ## Prerequisites
4
+
5
+ ### Python Version Support
6
+ - **Supported**: To run the SDK you need Python version 3.7 or higher.
7
+
8
+ ## Setup Instructions
9
+
10
+ ### 1. Install and Configure Python
11
+
12
+ For Python installation, you can download it from the official website: https://www.python.org/downloads/
13
+
14
+ ```bash
15
+ # Check Python version
16
+ python3 --version
17
+ ```
18
+
19
+ ### 3. Install Dependencies
20
+ ```bash
21
+ cd {path_to_dir}/creatorsapi-python-sdk
22
+ # Install package dependencies
23
+ pip3 install -r requirements.txt
24
+ ```
25
+
26
+ ### 4. Run Sample Code
27
+ Navigate to the examples directory to run the samples.
28
+
29
+ ```bash
30
+ cd examples
31
+ ```
32
+
33
+ Before running the samples, you'll need to configure your API credentials in the sample files by replacing the following placeholders:
34
+
35
+ - `<YOUR CREDENTIAL ID>` - Your API credential ID
36
+ - `<YOUR CREDENTIAL SECRET>` - Your API credential secret
37
+ - `<YOUR CREDENTIAL VERSION>` - Your credential version (e.g., "2.1" for NA, "2.2" for EU, "2.3" for FE with Cognito; "3.1" for NA, "3.2" for EU, "3.3" for FE with LWA)
38
+ - `<YOUR MARKETPLACE>` - Your marketplace to which you want to send the request (e.g., "www.amazon.com" for US marketplace)
39
+ - `<YOUR PARTNER TAG>` - Your Partner Tag for the requested marketplace in applicable sample code snippet files
40
+
41
+ Run the following commands to run the sample files:
42
+
43
+ **Get detailed product information:**
44
+ ```bash
45
+ python3 sample_get_items.py
46
+ ```
47
+
48
+ **Search for products:**
49
+ ```bash
50
+ python3 sample_search_items.py
51
+ ```
52
+
53
+ #### Other Samples
54
+ Check the `examples` directory for additional sample files with various API operations.
@@ -0,0 +1,128 @@
1
+ # coding: utf-8
2
+
3
+ # flake8: noqa
4
+
5
+ """
6
+ Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
7
+
8
+ Licensed under the Apache License, Version 2.0 (the "License").
9
+ You may not use this file except in compliance with the License.
10
+ A copy of the License is located at
11
+
12
+ http://www.apache.org/licenses/LICENSE-2.0
13
+
14
+ or in the "license" file accompanying this file. This file is distributed
15
+ on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
16
+ express or implied. See the License for the specific language governing
17
+ permissions and limitations under the License.
18
+
19
+ """ # noqa: E501
20
+
21
+
22
+ __version__ = "1.0.0"
23
+
24
+ # import apis into sdk package
25
+ from creatorsapi_python_sdk.api.default_api import DefaultApi
26
+
27
+ # import ApiClient
28
+ from creatorsapi_python_sdk.api_response import ApiResponse
29
+ from creatorsapi_python_sdk.api_client import ApiClient
30
+ from creatorsapi_python_sdk.configuration import Configuration
31
+ from creatorsapi_python_sdk.exceptions import OpenApiException
32
+ from creatorsapi_python_sdk.exceptions import ApiTypeError
33
+ from creatorsapi_python_sdk.exceptions import ApiValueError
34
+ from creatorsapi_python_sdk.exceptions import ApiKeyError
35
+ from creatorsapi_python_sdk.exceptions import ApiAttributeError
36
+ from creatorsapi_python_sdk.exceptions import ApiException
37
+
38
+ # import models into sdk package
39
+ from creatorsapi_python_sdk.models.access_denied_exception_response_content import AccessDeniedExceptionResponseContent
40
+ from creatorsapi_python_sdk.models.access_denied_reason import AccessDeniedReason
41
+ from creatorsapi_python_sdk.models.availability import Availability
42
+ from creatorsapi_python_sdk.models.browse_node import BrowseNode
43
+ from creatorsapi_python_sdk.models.browse_node_ancestor import BrowseNodeAncestor
44
+ from creatorsapi_python_sdk.models.browse_node_child import BrowseNodeChild
45
+ from creatorsapi_python_sdk.models.browse_node_info import BrowseNodeInfo
46
+ from creatorsapi_python_sdk.models.browse_nodes_result import BrowseNodesResult
47
+ from creatorsapi_python_sdk.models.by_line_info import ByLineInfo
48
+ from creatorsapi_python_sdk.models.classifications import Classifications
49
+ from creatorsapi_python_sdk.models.condition import Condition
50
+ from creatorsapi_python_sdk.models.content_info import ContentInfo
51
+ from creatorsapi_python_sdk.models.content_rating import ContentRating
52
+ from creatorsapi_python_sdk.models.contributor import Contributor
53
+ from creatorsapi_python_sdk.models.customer_reviews import CustomerReviews
54
+ from creatorsapi_python_sdk.models.deal_details import DealDetails
55
+ from creatorsapi_python_sdk.models.delivery_flag import DeliveryFlag
56
+ from creatorsapi_python_sdk.models.dimension_based_attribute import DimensionBasedAttribute
57
+ from creatorsapi_python_sdk.models.error_data import ErrorData
58
+ from creatorsapi_python_sdk.models.external_ids import ExternalIds
59
+ from creatorsapi_python_sdk.models.feed import Feed
60
+ from creatorsapi_python_sdk.models.get_browse_nodes_request_content import GetBrowseNodesRequestContent
61
+ from creatorsapi_python_sdk.models.get_browse_nodes_resource import GetBrowseNodesResource
62
+ from creatorsapi_python_sdk.models.get_browse_nodes_response_content import GetBrowseNodesResponseContent
63
+ from creatorsapi_python_sdk.models.get_feed_request_content import GetFeedRequestContent
64
+ from creatorsapi_python_sdk.models.get_feed_response_content import GetFeedResponseContent
65
+ from creatorsapi_python_sdk.models.get_items_request_content import GetItemsRequestContent
66
+ from creatorsapi_python_sdk.models.get_items_resource import GetItemsResource
67
+ from creatorsapi_python_sdk.models.get_items_response_content import GetItemsResponseContent
68
+ from creatorsapi_python_sdk.models.get_report_request_content import GetReportRequestContent
69
+ from creatorsapi_python_sdk.models.get_report_response_content import GetReportResponseContent
70
+ from creatorsapi_python_sdk.models.get_variations_request_content import GetVariationsRequestContent
71
+ from creatorsapi_python_sdk.models.get_variations_resource import GetVariationsResource
72
+ from creatorsapi_python_sdk.models.get_variations_response_content import GetVariationsResponseContent
73
+ from creatorsapi_python_sdk.models.image_size import ImageSize
74
+ from creatorsapi_python_sdk.models.image_type import ImageType
75
+ from creatorsapi_python_sdk.models.images import Images
76
+ from creatorsapi_python_sdk.models.internal_server_exception_response_content import InternalServerExceptionResponseContent
77
+ from creatorsapi_python_sdk.models.item import Item
78
+ from creatorsapi_python_sdk.models.item_info import ItemInfo
79
+ from creatorsapi_python_sdk.models.items_result import ItemsResult
80
+ from creatorsapi_python_sdk.models.language_type import LanguageType
81
+ from creatorsapi_python_sdk.models.languages import Languages
82
+ from creatorsapi_python_sdk.models.list_feeds_response_content import ListFeedsResponseContent
83
+ from creatorsapi_python_sdk.models.list_reports_response_content import ListReportsResponseContent
84
+ from creatorsapi_python_sdk.models.manufacture_info import ManufactureInfo
85
+ from creatorsapi_python_sdk.models.money import Money
86
+ from creatorsapi_python_sdk.models.multi_valued_attribute import MultiValuedAttribute
87
+ from creatorsapi_python_sdk.models.offer_availability_v2 import OfferAvailabilityV2
88
+ from creatorsapi_python_sdk.models.offer_condition_v2 import OfferConditionV2
89
+ from creatorsapi_python_sdk.models.offer_listing_v2 import OfferListingV2
90
+ from creatorsapi_python_sdk.models.offer_loyalty_points_v2 import OfferLoyaltyPointsV2
91
+ from creatorsapi_python_sdk.models.offer_merchant_info_v2 import OfferMerchantInfoV2
92
+ from creatorsapi_python_sdk.models.offer_price_v2 import OfferPriceV2
93
+ from creatorsapi_python_sdk.models.offer_saving_basis import OfferSavingBasis
94
+ from creatorsapi_python_sdk.models.offer_savings import OfferSavings
95
+ from creatorsapi_python_sdk.models.offer_type import OfferType
96
+ from creatorsapi_python_sdk.models.offers_v2 import OffersV2
97
+ from creatorsapi_python_sdk.models.product_info import ProductInfo
98
+ from creatorsapi_python_sdk.models.rating import Rating
99
+ from creatorsapi_python_sdk.models.refinement import Refinement
100
+ from creatorsapi_python_sdk.models.refinement_bin import RefinementBin
101
+ from creatorsapi_python_sdk.models.report_metadata import ReportMetadata
102
+ from creatorsapi_python_sdk.models.resource_not_found_exception_response_content import ResourceNotFoundExceptionResponseContent
103
+ from creatorsapi_python_sdk.models.saving_basis_type import SavingBasisType
104
+ from creatorsapi_python_sdk.models.search_items_request_content import SearchItemsRequestContent
105
+ from creatorsapi_python_sdk.models.search_items_resource import SearchItemsResource
106
+ from creatorsapi_python_sdk.models.search_items_response_content import SearchItemsResponseContent
107
+ from creatorsapi_python_sdk.models.search_refinements import SearchRefinements
108
+ from creatorsapi_python_sdk.models.search_result import SearchResult
109
+ from creatorsapi_python_sdk.models.single_boolean_valued_attribute import SingleBooleanValuedAttribute
110
+ from creatorsapi_python_sdk.models.single_integer_valued_attribute import SingleIntegerValuedAttribute
111
+ from creatorsapi_python_sdk.models.single_string_valued_attribute import SingleStringValuedAttribute
112
+ from creatorsapi_python_sdk.models.sort_by import SortBy
113
+ from creatorsapi_python_sdk.models.technical_info import TechnicalInfo
114
+ from creatorsapi_python_sdk.models.throttle_exception_response_content import ThrottleExceptionResponseContent
115
+ from creatorsapi_python_sdk.models.trade_in_info import TradeInInfo
116
+ from creatorsapi_python_sdk.models.trade_in_price import TradeInPrice
117
+ from creatorsapi_python_sdk.models.unauthorized_exception_reason import UnauthorizedExceptionReason
118
+ from creatorsapi_python_sdk.models.unauthorized_exception_response_content import UnauthorizedExceptionResponseContent
119
+ from creatorsapi_python_sdk.models.unit_based_attribute import UnitBasedAttribute
120
+ from creatorsapi_python_sdk.models.validation_exception_field import ValidationExceptionField
121
+ from creatorsapi_python_sdk.models.validation_exception_reason import ValidationExceptionReason
122
+ from creatorsapi_python_sdk.models.validation_exception_response_content import ValidationExceptionResponseContent
123
+ from creatorsapi_python_sdk.models.variation_attribute import VariationAttribute
124
+ from creatorsapi_python_sdk.models.variation_dimension import VariationDimension
125
+ from creatorsapi_python_sdk.models.variation_summary import VariationSummary
126
+ from creatorsapi_python_sdk.models.variation_summary_price import VariationSummaryPrice
127
+ from creatorsapi_python_sdk.models.variations_result import VariationsResult
128
+ from creatorsapi_python_sdk.models.website_sales_rank import WebsiteSalesRank
@@ -0,0 +1,5 @@
1
+ # flake8: noqa
2
+
3
+ # import apis into api package
4
+ from creatorsapi_python_sdk.api.default_api import DefaultApi
5
+