Skip to main content

tap-amazon-sp

This is a Singer tap that produces JSON-formatted data following the Singer spec.

This tap:

  • Pulls raw data from Amazon SP API
  • Extracts the following resources:
  • Outputs the schema for each resource
  • Incrementally pulls data based on the input state

Install

pip install tap-amazon-sp

Usage

  1. Follow Singer.io Best Practices for setting up separate tap and target virtualenvs to avoid version conflicts.
  2. Create a config file ~/config.json with Amazon Seller Partner API credentials. Multiple accounts across different marketplaces are supported. Here is a list of marketplace names.
    {
      "accounts": [
        {
          "selling_partner_id": "NA_SELLING_PARTNER_ID",
          "marketplaces": ["US", "MX", "CA"],
          "refresh_token": "env[NA_REFRESH_TOKEN]"
        },
        {
          "selling_partner_id": "AU_SELLING_PARTNER_ID",
          "marketplaces": ["AU"],
          "refresh_token": "env[AU_REFRESH_TOKEN]"
        }
      ],
      "access_key_id": "ACCESS_KEY_ID",
      "secret_access_key": "env[SECRET_ACCESS_KEY]",
      "sp_role_arn": "arn:aws:iam::1234567890:role/RoleName",
      "lwa_client_id": "CLIENT_ID",
      "lwa_client_secret": "env[LWA_CLIENT_SECRET]",
      "start_date": "2021-01-01T00:00:00Z",
      "rate_limit_backoff_seconds": 60
    }
    
  3. Discover catalog: tap-amazon-sp -d > catalog.json
  4. Select orders stream in the generated catalog.json.
    ...
    "stream": "orders",
    "metadata": [
      {
        "breadcrumb": [],
        "metadata": {
          "table-key-properties": [
            "AmazonOrderId"
          ],
          "forced-replication-method": "INCREMENTAL",
          "valid-replication-keys": [
            "LastUpdateDate"
          ],
          "inclusion": "available",
          "selected": true  <-- Somewhere in the huge catalog file, in stream metadata.
        }
      },
      ...
    ]
    ...
    
  5. Use following command to sync all orders with order items, buyer info and shipping address (when available).
tap-amazon-sp -c config.json --catalog catalog.json > output.txt

Copyright © 2021 Vibe Inc

Metadata

Release files for tap-amazon-sp 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tap-amazon-sp 0.1.1
File Size Uploaded Provenance Actions
tap-amazon-sp-0.1.1.tar.gz 14.6 kB Without provenance Details for tap-amazon-sp-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tap-amazon-sp 0.1.1
File Interpreter ABI Platform Actions
tap_amazon_sp-0.1.1-py3-none-any.whl Python 3 none any Details for tap_amazon_sp-0.1.1-py3-none-any.whl

Total release size: 28.6 kB

Release files / tap-amazon-sp-0.1.1.tar.gz

Download URL tap-amazon-sp-0.1.1.tar.gz
Size 14.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1bdaae448d7b69a5a621c873274c980938450fc440bd337e5612de4db7c5bd1c
BLAKE2b-256 checksum
How to use checksums
aacc9a98667da4ce61041da2c1abc8e6b67562d7dfe696d8cde8d21ecec59b16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10

Release files / tap_amazon_sp-0.1.1-py3-none-any.whl

Download URL tap_amazon_sp-0.1.1-py3-none-any.whl
Size 14.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0ab18d97760af0f571956f67ad77dae66c527962d3ab9447c1b25c08fcd6732a
BLAKE2b-256 checksum
How to use checksums
2f722420a40c967c465d23ebfaf710c49124aea3c8bbe936bd7a6ffa154e7727
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10

Security for tap-amazon-sp 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page