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.2.tar.gz
(45.2 kB
view hashes)
Built Distribution
Close
Hashes for python-amazon-sp-api-0.4.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1423ba2070cfb5c2cc738aa6599c7906f67915c5dee270c5197752adddacecac |
|
MD5 | 727d4b36049b47814d804f6bff1cfb51 |
|
BLAKE2b-256 | a4c583c8f6f375d4e5d6485f190d49d1017bad9e2090b6dfe6bde1e3a18c2e0e |
Close
Hashes for python_amazon_sp_api-0.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45847bf5e7a3fd06e82ba186f5187b6c7d7e5998a2371eb65dbd53a2425218b5 |
|
MD5 | 5817f470abc6204d70cfcec0d8996656 |
|
BLAKE2b-256 | adcb45f74857a8d89bd4ae5dc5f4488869beacf20ccdab18e3cc09119e42fe5b |