Skip to main content

Amazon Creators API wrapper for Python

Project description

Amazon Creators API

This is a small wrapper around the official Amazon Creators API Python SDK. It provides a lightweight package entry point while directly exposing the SDK's models and exceptions.

Install

pip

pip install creators

uv

uv add creators

Usage

from creators import Client, SearchItemsResource, GetItemsResource, ApiException

client = Client(
    credential_id="YOUR_CREDENTIAL_ID",
    credential_secret="YOUR_CREDENTIAL_SECRET",
    version="3.1",
    marketplace="www.amazon.com",
    partner_tag="yourtag-20",
)

try:
    response = client.search_items(
        keywords="wireless earbuds",
        item_count=5,
        resources=[SearchItemsResource.ITEM_INFO_DOT_TITLE],
    )
    print(response.search_result.items)
except ApiException as exc:
    print(f"api error: {exc}")

try:
    response = client.get_items(
        item_ids=["B000123456", "B000987654"],
        resources=[GetItemsResource.ITEM_INFO_DOT_TITLE],
    )
    print(response.items_result.items)
except ApiException as exc:
    print(f"api error: {exc}")

Notes

  • Models are re-exported from the official SDK.
  • Exceptions are re-exported from the official SDK.
  • More examples are available in examples/.
  • To run tests or the examples, install dev dependencies first with uv sync --group dev, then run pytest or the scripts in examples/.

References

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

creators-0.2.0.tar.gz (53.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

creators-0.2.0-py3-none-any.whl (179.4 kB view details)

Uploaded Python 3

File details

Details for the file creators-0.2.0.tar.gz.

File metadata

  • Download URL: creators-0.2.0.tar.gz
  • Upload date:
  • Size: 53.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for creators-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f9a16fa4287adf44bb5a7ef9a28f88075e7e9e7e991b554e4741b2929a0be325
MD5 04b1c4a5526bcd24876004547cafd5d2
BLAKE2b-256 e3419e890f117a0ff0ab88c6db867c4731937398bce6d3015dc711f385ec89a4

See more details on using hashes here.

File details

Details for the file creators-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: creators-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 179.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for creators-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce02cc364beecc7732e512d83f4d3e7d5892de5a3e6c50d424323a4ca08fc641
MD5 9bbb34f4d7551daac38ca6a03a826e2c
BLAKE2b-256 dc46ec4df3495a078c1a9167bad546b7d1f9818b678933bd3463420574b40d15

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page