Python wrapper for the Amazon Selling-Partner API
Project description
PYTHON-AMAZON-SP-API
Amazon Selling-Partner API
A wrapper to access Amazon's Selling Partner API with an easy-to-use interface.
Q & A
If you have questions, please ask them in GitHub discussions
Installation
pip install python-amazon-sp-api
Usage
from sp_api.api import Orders
from sp_api.api import Reports
from sp_api.api import Feeds
from sp_api.base.reportTypes import ReportType
# orders API
try:
res = Orders().get_orders(CreatedAfter=(datetime.utcnow() - timedelta(days=7)).isoformat())
print(res.payload) # json data
except SellingApiException as ex:
print(ex)
# report request
createReportResponse = Reports().create_report(reportType=ReportType.GET_MERCHANT_LISTINGS_ALL_DATA)
# submit feed
# feeds can be submitted like explained in Amazon's docs, or simply by calling submit_feed
Feeds().submit_feed(self, <feed_type>, <file_or_bytes_io>, content_type='text/tsv', **kwargs)
Documentation
Documentation is available here
DISCLAIMER
We are not affiliated with Amazon
LICENSE
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python-amazon-sp-api-0.4.7.tar.gz
(45.4 kB
view hashes)
Built Distribution
Close
Hashes for python-amazon-sp-api-0.4.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fea54d0c48f14c72194914b9ef4481ecb89ba729b28252085aed69a0ed7746a8 |
|
MD5 | 56ee65358b7aa9ce2cefe9b5d41954dd |
|
BLAKE2b-256 | 63d2aa70b96a1f7945b7526fe46f1ace3cf8e5806351434aa35ecd0bf6349509 |
Close
Hashes for python_amazon_sp_api-0.4.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f06de93a240e0d539377a312b94a28ef7ca621b77845217cc4d80dcce9032858 |
|
MD5 | 1164eb2987e595b666b48af3c4fab049 |
|
BLAKE2b-256 | 859fa2b7cf8779a3b8632a969865774c3a123c72581fd76278065b7b13453671 |