Skip to content

DRAFT: Add async support to Creators API#143

Open
sergioteula wants to merge 5 commits intomasterfrom
add-async-support
Open

DRAFT: Add async support to Creators API#143
sergioteula wants to merge 5 commits intomasterfrom
add-async-support

Conversation

@sergioteula
Copy link
Owner

This PR introduces full async support to the amazon_creatorsapi library, enabling non-blocking interactions with the Amazon API using async/await.

Key Changes:

📦 New amazon_creatorsapi.aio subpackage: Dedicated namespace for async logic, ensuring a clean separation from the synchronous implementation.
⚡ AsyncAmazonCreatorsApi: New main class for performing asynchronous API requests.
🌐 httpx Integration: Added httpx as an optional dependency to handle the async HTTP client.
🔐 Error Handling: Added AuthenticationError to errors.py to improve handling of OAuth2 authentication failures.
✅ Comprehensive Tests: Included a full test suite in tests/amazon_creatorsapi/aio/ covering client, authentication, and integration.

@sergioteula sergioteula self-assigned this Feb 4, 2026
@sergioteula sergioteula added the feature New feature or request label Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant