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
# 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='GET_FLAT_FILE_OPEN_LISTINGS_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.0.tar.gz
(45.2 kB
view hashes)
Built Distribution
Close
Hashes for python-amazon-sp-api-0.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d56d125c590e0daec6f003d822c4d7b9ed0c207b56dc27f3afe39cb6f0a2af2 |
|
MD5 | 71bfc3f0a43f3c1e6e074be792d9c978 |
|
BLAKE2b-256 | 6ea6f788a5e911da350ee8807395de3c0da3cefc2670a9eecaca00b98588b18a |
Close
Hashes for python_amazon_sp_api-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd06d2eb949b8fc1abdd47801363dfe09281bee4259326ebfa12d0cf84ea76ad |
|
MD5 | 25d94d28dbffa8532565fc36a7dc0e05 |
|
BLAKE2b-256 | 52cb0bec1a9b009034a53030175c29c7806c9e51bd7cbc236c302ed41a52cf13 |