Skip to content

Releases: saleweaver/python-amazon-sp-api

v2.1.7

09 Feb 19:28
b919b62

Choose a tag to compare

Version 2.1.7

New Features

  • Dynamic Import Handling:
    • Introduced dynamic import handling for Client, AccessTokenClient, Credentials, and AuthorizationError using __getattr__. This change optimizes the import process and reduces unnecessary imports, improving performance.

Changes

  • README Update:
    • Removed cryptocurrency addresses from the README file, streamlining the support section.

Internal

  • Type Checking Enhancements:
    • Added TYPE_CHECKING imports to optimize the import process during type checking, ensuring that certain imports are only processed when type checking is enabled.

Diagram of Dynamic Import Handling

graph TD;
    A[Static Imports] --> B[Dynamic Import Handling];
    B --> C[Reduces Unnecessary Imports];
    B --> D[Improves Performance];

This update focuses on improving the efficiency of the import process within the library, enhancing performance and maintainability.

v2.1.6

06 Feb 14:03

Choose a tag to compare

Version 2.1.6

New Features

  • Enhanced Character Encoding Resolution:
    • Improved the resolve_character_code function to better handle character encoding by considering response_charset_encoding. This ensures more accurate encoding detection, especially for responses with implicit UTF-8 encoding.

Changes

  • Reports Module:
    • Updated the Reports class to utilize the enhanced resolve_character_code function. This change improves the handling of character encoding in both synchronous and asynchronous report downloads.

Bug Fixes

  • No specific bug fixes were documented in this release.

Internal

  • Added comprehensive tests for the resolve_character_code function to ensure correct behavior across various encoding scenarios.

Diagram of Character Encoding Resolution Update

graph TD;
    A[Previous Encoding Handling] --> B[Enhanced Encoding Handling];
    B --> C[Considers response_charset_encoding];
    B --> D[Improved Fallback Logic];

This update enhances the robustness of character encoding detection, particularly in scenarios where the response charset is not explicitly set, ensuring more reliable data processing for users.

v2.1.5

05 Feb 07:16
dc4b889

Choose a tag to compare

Version 2.1.5

New Features

  • Improved Proxy Handling:
    • Introduced _httpx_client_kwargs function to enhance proxy handling. This allows for dynamic selection of proxies when provided as a list, improving flexibility and robustness in network configurations.

Changes

  • DataKiosk and Reports Modules:
    • Updated the use of httpx.Client to utilize the new _httpx_client_kwargs function for better proxy and timeout management.

Bug Fixes

  • No specific bug fixes were documented in this release.

Internal

  • Added tests for _httpx_client_kwargs to ensure correct proxy selection and configuration.
  • Updated version number from 2.1.4 to 2.1.5.

Diagram of Version Update

graph TD;
    A[Version 2.1.4] --> B[Version 2.1.5];

This update enhances the flexibility of the HTTP client configuration, particularly in handling proxies, which is crucial for users operating in diverse network environments.

v2.1.4

04 Feb 15:10

Choose a tag to compare

Changelog

Version 2.1.4

New Features

  • No new features added in this release.

Changes

  • Documentation Enhancements:
    • Updated the documentation theme from pydata_sphinx_theme to alabaster for improved aesthetics and usability.
    • Added custom CSS for better styling of Python classes, methods, and functions in the documentation.
    • Increased the toctree max depth from 1 to 2 in endpoints.rst to allow for deeper navigation in the documentation.

Bug Fixes

  • No specific bug fixes were documented in this release.

Internal

  • Updated version number from 2.1.3 to 2.1.4.

Diagram of Version Update

graph TD;
    A[Version 2.1.3] --> B[Version 2.1.4];

This update primarily focuses on documentation improvements, enhancing the user experience when navigating and reading the project documentation.

v2.1.3

04 Feb 12:06

Choose a tag to compare

Changelog

Version 2.1.3

New Features

  • No new features added in this release.

Changes

  • Updated version number from 2.1.1 to 2.1.3 for consistency and alignment with internal versioning.

Bug Fixes

  • No specific bug fixes were documented in this release.

Internal

  • No internal changes were documented in this release.

Diagram of Version Update

graph TD;
    A[Version 2.1.1] --> B[Version 2.1.3];

This update primarily reflects a version number change, ensuring the package is up-to-date with internal versioning practices.

v2.0.15

01 Feb 23:33

Choose a tag to compare

Version 2.0.15

New Features

Orders API Enhancements

  • Enhanced the OrdersV20260101 client with detailed docstrings for the search_orders and get_order methods. These updates include usage plans, examples, and argument details, improving the developer experience and understanding of API capabilities.
graph TD;
    A[OrdersV20260101 Client] -->|Enhanced Docstrings| B[search_orders Method];
    A -->|Enhanced Docstrings| C[get_order Method];
    B --> D[Usage Plans & Examples];
    C --> D;

Internal Changes

  • Removed unnecessary print statement from the search_orders method to clean up the codebase.

These changes provide clearer guidance for developers using the Orders API, ensuring they can implement and utilize the API more effectively.

v2.0.14

01 Feb 23:27

Choose a tag to compare

Version 2.0.14

Bug Fixes

Orders API Asynchronous Handling

  • Fixed asynchronous handling in the OrdersV0 client by ensuring that the _access_restricted method is awaited properly. This resolves potential issues with handling restricted resources in asynchronous environments.
graph TD;
    A[OrdersV0 Client] -->|Fix Async Handling| B[_access_restricted Method];
    B --> C[Await Correctly];

These changes enhance the reliability and correctness of asynchronous operations within the Orders API, ensuring smoother integration and execution in applications using the python-amazon-sp-api library.

Documentation

  • Updated the Fulfillment Inbound documentation to replace .. info:: with .. note:: for better clarity.

Dependencies

  • Added httpx to docs/requirements.txt to support HTTP requests in documentation examples.

v2.0.13

01 Feb 23:21

Choose a tag to compare

Version 2.0.13

Bug Fixes

Orders API Asynchronous Handling

  • Fixed asynchronous handling in the OrdersV0 client by ensuring that the _access_restricted method is awaited properly. This resolves potential issues with handling restricted resources in asynchronous environments.
graph TD;
    A[OrdersV0 Client] -->|Fix Async Handling| B[_access_restricted Method];
    B --> C[Await Correctly];

These changes enhance the reliability and correctness of asynchronous operations within the Orders API, ensuring smoother integration and execution in applications using the python-amazon-sp-api library.

v2.0.12

01 Feb 23:17

Choose a tag to compare

Version 2.0.12

New Features

Orders API Version Update

  • Introduced a new version of the Orders API, 2026-01-01, alongside the legacy v0 version. This new version includes updated endpoints and parameters, allowing for more efficient order management.
  • Added support for both synchronous and asynchronous clients for the new Orders API version.
graph TD;
    A[Orders API] -->|Version Selection| B{Version};
    B -->|v0| C[Legacy Orders Client];
    B -->|2026-01-01| D[New OrdersV20260101 Client];

Internal Changes

  • Refactored the Orders API to support versioning, allowing seamless integration of future updates without disrupting existing implementations.
  • Updated the import structure to accommodate the new Orders API version, ensuring compatibility and ease of use.
graph TD;
    E[Refactor] -->|Support Versioning| F[Orders API];
    F --> G[Improved Flexibility];

Dependency Updates

  • Updated boto3 to version 1.42.36.
  • Updated setuptools to version 80.10.2.
  • Updated cachetools to version 6.2.6.

These enhancements improve the flexibility and scalability of the API, providing a robust foundation for future development and integration.

v2.0.11

01 Feb 23:13

Choose a tag to compare

Version 2.0.11

New Features

Orders API Version Update

  • Introduced a new version of the Orders API, 2026-01-01, alongside the legacy v0 version. This new version includes updated endpoints and parameters, allowing for more efficient order management.
  • Added support for both synchronous and asynchronous clients for the new Orders API version.
graph TD;
    A[Orders API] -->|Version Selection| B{Version};
    B -->|v0| C[Legacy Orders Client];
    B -->|2026-01-01| D[New OrdersV20260101 Client];

Internal Changes

  • Refactored the Orders API to support versioning, allowing seamless integration of future updates without disrupting existing implementations.
  • Updated the import structure to accommodate the new Orders API version, ensuring compatibility and ease of use.
graph TD;
    E[Refactor] -->|Support Versioning| F[Orders API];
    F --> G[Improved Flexibility];

Dependency Updates

  • Updated boto3 to version 1.42.36.
  • Updated setuptools to version 80.10.2.
  • Updated cachetools to version 6.2.6.

These enhancements improve the flexibility and scalability of the API, providing a robust foundation for future development and integration.