Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .agent/rules/code-style-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ trigger: always_on
# Test

- Add tests following TDD practices
- Mirror the amazon_paapi structure in the tests directory
- Mirror the amazon_creatorsapi structure in the tests directory
- Use unittest.TestCase with setUp() and tearDown()
- Use unittest assertions, not native assert
- Use @patch decorators for mocks (avoid context managers)

# References

- Documentation for the Product Advertising API here: https://webservices.amazon.com/paapi5/documentation/operations.html
- Documentation for the Creators API here: https://webservices.amazon.com/creatorsapi/documentation/
6 changes: 0 additions & 6 deletions .env.template
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
# Product Advertising API
API_KEY=
API_SECRET=

# Creators API
CREDENTIAL_ID=
CREDENTIAL_SECRET=
API_VERSION=
MARKETPLACE=

# Common
AFFILIATE_TAG=
COUNTRY_CODE=
2 changes: 0 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ jobs:
check:
runs-on: ubuntu-latest
env:
API_KEY: ${{ secrets.API_KEY }}
API_SECRET: ${{ secrets.API_SECRET }}
AFFILIATE_TAG: ${{ secrets.AFFILIATE_TAG }}
COUNTRY_CODE: ${{ secrets.COUNTRY_CODE }}
CREDENTIAL_ID: ${{ secrets.CREDENTIAL_ID }}
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ repos:
rev: v0.1.6
hooks:
- id: detect-missing-init
args: ["--create", "--python-folders", "amazon_paapi"]
args: ["--create", "--python-folders", "amazon_creatorsapi"]

- repo: https://github.com/gitleaks/gitleaks
rev: v8.30.0
Expand All @@ -52,7 +52,7 @@ repos:
- id: test
name: Running tests
language: system
entry: "bash -c 'set -a && source .env 2>/dev/null; set +a && uv run pytest -rs --cov=amazon_paapi --cov=amazon_creatorsapi'"
entry: "bash -c 'set -a && source .env 2>/dev/null; set +a && uv run pytest -rs --cov=amazon_creatorsapi'"
types_or: [python]
pass_filenames: false

Expand Down
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,21 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [7.0.0] - 2026-09-03

### Removed

- The deprecated `amazon_paapi` module and its bundled Product Advertising API 5.0 SDK
- `AmazonApi`, `amazon_paapi.errors`, `amazon_paapi.helpers`, `amazon_paapi.models` and `amazon_paapi.tools`
- Product Advertising API documentation and deprecation notices in the README and docs
- `API_KEY` and `API_SECRET` environment variables, only used by the removed module

### Changed

- Use `amazon_creatorsapi` instead. See the
[migration guide](https://python-amazon-paapi.readthedocs.io/en/latest/pages/migration-guide-6.html)
for the credential, method and exception mapping

## [6.4.0] - 2026-09-03

### Added
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test:
@uv run --env-file .env pytest -rs

coverage:
@uv run pytest -rs --cov=amazon_paapi --cov=amazon_creatorsapi --cov-report=html --cov-report=term --cov-report=xml
@uv run pytest -rs --cov=amazon_creatorsapi --cov-report=html --cov-report=term --cov-report=xml

test-all-python-tags:
@touch .env
Expand Down
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
# Python Amazon Creators API

A Python wrapper for Amazon's product APIs. This package supports both the legacy [Product Advertising API 5.0](https://webservices.amazon.com/paapi5/documentation/) and the new [Amazon Creators API](https://webservices.amazon.com/creatorsapi/documentation/).
A Python wrapper for the [Amazon Creators API](https://webservices.amazon.com/creatorsapi/documentation/).

[![PyPI](https://img.shields.io/pypi/v/python-amazon-paapi?color=%231182C2&label=PyPI)](https://pypi.org/project/python-amazon-paapi/)
[![Python](https://img.shields.io/badge/Python-≥3.9-%23FFD140)](https://www.python.org/)
[![License](https://img.shields.io/badge/License-MIT-%23e83633)](https://github.com/sergioteula/python-amazon-paapi/blob/master/LICENSE)
[![Downloads](https://img.shields.io/pypi/dm/python-amazon-paapi?label=Downloads)](https://pypi.org/project/python-amazon-paapi/)

> [!IMPORTANT]
> **Migration Advisory**: The `amazon_paapi` module is deprecated. Amazon is transitioning from the Product Advertising API (PAAPI) to the new **Creators API**. Please migrate to the `amazon_creatorsapi` module for new projects. See the [Migration Guide](https://python-amazon-paapi.readthedocs.io/en/latest/pages/migration-guide-6.html) for more information.

## Features

- 🎯 **Simple object-oriented interface** for easy integration
Expand Down
20 changes: 0 additions & 20 deletions amazon_paapi/__init__.py

This file was deleted.

Loading
Loading