python-amazon-sp-api 2.1.22__py3-none-any.whl → 2.1.23__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-amazon-sp-api
3
- Version: 2.1.22
3
+ Version: 2.1.23
4
4
  Summary: Python wrapper for the Amazon Selling-Partner API
5
5
  Home-page: https://github.com/saleweaver/python-amazon-sp-api
6
6
  Author: Michael Primke
@@ -1,7 +1,7 @@
1
- python_amazon_sp_api-2.1.22.data/scripts/make_endpoint,sha256=QWcwG6z4RWFJlzj4-xyHJymjObyKtwkvWFRq8T18iG0,8568
2
- python_amazon_sp_api-2.1.22.dist-info/licenses/LICENSE,sha256=nbzomPIVo1PVl5bpGAntofsYAF7ZQ2UhzOtKgf7IiNw,1071
1
+ python_amazon_sp_api-2.1.23.data/scripts/make_endpoint,sha256=QWcwG6z4RWFJlzj4-xyHJymjObyKtwkvWFRq8T18iG0,8568
2
+ python_amazon_sp_api-2.1.23.dist-info/licenses/LICENSE,sha256=nbzomPIVo1PVl5bpGAntofsYAF7ZQ2UhzOtKgf7IiNw,1071
3
3
  sp_api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- sp_api/__version__.py,sha256=mS7arQMUd6Y25oXQLVDtayUZKPp0cLwnvHlzZeEhLjQ,23
4
+ sp_api/__version__.py,sha256=6pJF24_-dF04UZx4BjA7CHI7dSh-ert7xrwQxYbbVnU,23
5
5
  sp_api/api/__init__.py,sha256=wOLql_DCj6aHkYX0b7_tI3mDlk92eh0opyKeFO97cfs,11002
6
6
  sp_api/api/amazon_warehousing_and_distribu/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  sp_api/api/amazon_warehousing_and_distribu/amazon_warehousing_and_distribu.py,sha256=VVk1WDc8xk1KNSk0xY4bUUNpReT0mYeEzUwyKwu9zW0,2765
@@ -91,7 +91,7 @@ sp_api/api/products/products_v0.py,sha256=11n0sks0eaivZm-Ol2AGEE2alLM4jUxVSpaf-k
91
91
  sp_api/api/replenishment/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
92
92
  sp_api/api/replenishment/replenishment.py,sha256=NfCn62f0OHTUXp_3Bas542iUuwW4H_1CdmyJTxXMM3U,4010
93
93
  sp_api/api/reports/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
94
- sp_api/api/reports/reports.py,sha256=AxIujGaeG7qWtjssFV8ezSxUakGpNbhZ4-izw6XlLxM,16892
94
+ sp_api/api/reports/reports.py,sha256=jEwIkjQA0f1kqF8H0qq9u-pgIbx19EtTrhi5lCdPQW8,17461
95
95
  sp_api/api/sales/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
96
96
  sp_api/api/sales/sales.py,sha256=SetSwWgpHH-Lz6wed73i30WgNsWObcGYP1plk9FQsTk,2281
97
97
  sp_api/api/seller_wallet/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -238,7 +238,7 @@ sp_api/asyncio/api/products/products_v0.py,sha256=wvqdc4BMLLPyAoqXoLWR63vsGD-Ie6
238
238
  sp_api/asyncio/api/replenishment/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
239
239
  sp_api/asyncio/api/replenishment/replenishment.py,sha256=uw74gGrOJFZDOJOJG2hGcjLqd8hQM9FugreEemxVlKc,4121
240
240
  sp_api/asyncio/api/reports/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
241
- sp_api/asyncio/api/reports/reports.py,sha256=xk0_vxrBBu-k6U4JhKXY87OuV0vm_rVZv065ApAp2dA,16907
241
+ sp_api/asyncio/api/reports/reports.py,sha256=7IqKhLwQ8EYZABPWU2obbV1Qr9NOhh8XZIIUhb1guyM,17476
242
242
  sp_api/asyncio/api/sales/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
243
243
  sp_api/asyncio/api/sales/sales.py,sha256=w04Cn507t_Y_qZq5OwdEW8G3kEtucppNSnbFRiN7GGc,2356
244
244
  sp_api/asyncio/api/seller_wallet/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -344,7 +344,7 @@ sp_api/util/products_definitions.py,sha256=TVO1L-vjyzSmL54Xfa0m3K6rVUFaTNsYBjeGn
344
344
  sp_api/util/report_document.py,sha256=oJ_xI0T595bKx1NxhIxLqNsiOLc9HCyZjlNJYXxnk6U,5264
345
345
  sp_api/util/retry.py,sha256=V8SeSeX3Brdou138hNA5HeQkKlHppZcqbZobIDjmBYw,2407
346
346
  sp_api/util/versioned_client.py,sha256=RWmRQvLPw-gfI18Or5hR0LNdAj_vRcUVbf3mDm0EE70,1795
347
- python_amazon_sp_api-2.1.22.dist-info/METADATA,sha256=vmMv2COHQ9rrtaCcnMzOnpXB0PSfoj1TmHLumsSKJbM,6978
348
- python_amazon_sp_api-2.1.22.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
349
- python_amazon_sp_api-2.1.22.dist-info/top_level.txt,sha256=mEzPMFyyy0LmJGY4KFXfh5usUka4eeouIr7-2IAzoE0,7
350
- python_amazon_sp_api-2.1.22.dist-info/RECORD,,
347
+ python_amazon_sp_api-2.1.23.dist-info/METADATA,sha256=gd0J8cM0vy_RyefltoDffhUYHS7Y3OtNO6Ib0xiKF34,6978
348
+ python_amazon_sp_api-2.1.23.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
349
+ python_amazon_sp_api-2.1.23.dist-info/top_level.txt,sha256=mEzPMFyyy0LmJGY4KFXfh5usUka4eeouIr7-2IAzoE0,7
350
+ python_amazon_sp_api-2.1.23.dist-info/RECORD,,
sp_api/__version__.py CHANGED
@@ -1 +1 @@
1
- __version__ = '2.1.22'
1
+ __version__ = '2.1.23'
@@ -360,11 +360,20 @@ class Reports(Client):
360
360
 
361
361
  Returns:
362
362
  ApiResponse
363
+
364
+ Note:
365
+ When the document itself is retrieved (``download``, ``file`` or
366
+ ``decrypt``), the character encoding the document was decoded and
367
+ written with is available as ``response.character_code``. It is the
368
+ value of ``character_code`` when one is passed, otherwise the
369
+ encoding resolved from the document response's ``Content-Type``.
370
+ On a metadata-only call, ``response.character_code`` is ``None``.
363
371
  """
364
372
  res = self._request(
365
373
  fill_query_params(kwargs.pop("path"), reportDocumentId),
366
374
  add_marketplace=False,
367
375
  )
376
+ res.character_code = None
368
377
  if download or file or ("decrypt" in kwargs and kwargs["decrypt"]):
369
378
  compression_algorithm = res.payload.get("compressionAlgorithm")
370
379
  with httpx.Client(
@@ -408,4 +417,5 @@ class Reports(Client):
408
417
  )
409
418
  if file:
410
419
  handle_file(file, decoded_document, character_code)
420
+ res.character_code = character_code
411
421
  return res
@@ -358,11 +358,20 @@ class Reports(AsyncBaseClient):
358
358
 
359
359
  Returns:
360
360
  ApiResponse
361
+
362
+ Note:
363
+ When the document itself is retrieved (``download``, ``file`` or
364
+ ``decrypt``), the character encoding the document was decoded and
365
+ written with is available as ``response.character_code``. It is the
366
+ value of ``character_code`` when one is passed, otherwise the
367
+ encoding resolved from the document response's ``Content-Type``.
368
+ On a metadata-only call, ``response.character_code`` is ``None``.
361
369
  """
362
370
  res = await self._request(
363
371
  fill_query_params(kwargs.pop("path"), reportDocumentId),
364
372
  add_marketplace=False,
365
373
  )
374
+ res.character_code = None
366
375
  if download or file or ("decrypt" in kwargs and kwargs["decrypt"]):
367
376
  compression_algorithm = res.payload.get("compressionAlgorithm")
368
377
  if stream and file:
@@ -407,4 +416,5 @@ class Reports(AsyncBaseClient):
407
416
  )
408
417
  if file:
409
418
  handle_file(file, decoded_document, character_code)
419
+ res.character_code = character_code
410
420
  return res