You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Amazon Product Advertising API 5.0 wrapper for Python
2
2
3
-
A simple Python wrapper for the [last version of the Amazon Product Advertising API](https://webservices.amazon.com/paapi5/documentation/quick-start/using-sdk.html). This module allows to get product information from Amazon using the official API in an easier way.
3
+
A simple Python wrapper for the [last version of the Amazon Product Advertising API](https://webservices.amazon.com/paapi5/documentation/quick-start/using-sdk.html). This module allows interacting with Amazon using the official API in an easier way.
Throttling value must be `greater than 0` or `False` to disable it. This value throttles requests to a maximum of one request every `1 / value` seconds. Note that this value is a per-worker throttling, so applications with multiple workers may make more requests per second. Throttling value is [set by default](https://github.com/sergioteula/python-amazon-paapi/blob/master/amazon/paapi.py#L36) to `0.8` or one request every 1.25 seconds.
90
-
91
-
```python
92
-
amazon = AmazonApi(KEY, SECRET, TAG, COUNTRY, throttling=0.5) # Max one request every two seconds
93
-
amazon = AmazonApi(KEY, SECRET, TAG, COUNTRY, throttling=False) # Unlimited requests per second
94
-
```
95
-
96
-
**Serializer for Django:**
97
-
98
-
We provide a serializer for Django REST framework, which speeds up your API
99
-
implementation.
91
+
Throttling value represents the wait time in seconds between API calls, being the default value 1 second. Use it to avoid reaching Amazon request limits.
100
92
101
93
```python
102
-
from amazon.serializers import AmazonProductSerializer
0 commit comments