python wrapper for amazon selling partner api
Project description
PYTHON-AMAZON-SP-API
Amazon Selling-Partner API
Early development status, contributions very welcome!
Installation
pip install python-amazon-sp-api
Usage
# 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')
Environment variables needed
| ENVIRONMENT VARIABLE | DESCRIPTION |
|---|---|
| SP_API_REFRESH_TOKEN | The refresh token used obtained via authorization (can be passed to the client instead) |
| LWA_APP_ID | Your login with amazon app id |
| LWA_CLIENT_SECRET | Your login with amazon client secret |
| SP_API_SECRET_KEY | AWS USER SECRET KEY |
| SP_API_ACCESS_KEY | AWS USER ACCESS KEY |
| SP_API_ROLE_ARN | The role's arn (needs permission to "Assume Role" STS) |
DISCLAIMER
We are not affiliated with Amazon
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.0.8.tar.gz
(116.4 kB
view details)
File details
Details for the file python-amazon-sp-api-0.0.8.tar.gz.
File metadata
- Download URL: python-amazon-sp-api-0.0.8.tar.gz
- Upload date:
- Size: 116.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbedc3e3ed872a8279789beca5eebef94937c27d084c4c7ad6c6e18ce383a943
|
|
| MD5 |
2c4607facbec6bc237e8112afffe175a
|
|
| BLAKE2b-256 |
8b33d21dfb7b2417253c8141eb6ed50c7c2d4905076c74ea3a978056271bfebd
|

