@@ -18,6 +18,7 @@ Features
1818* Get browse nodes information.
1919* Get multiple results at once without the 10 items limitation from Amazon.
2020* Configurable throttling to avoid requests exceptions.
21+ * Built-in serializer for Django REST framework.
2122* Support for [ all available countries] ( https://github.com/sergioteula/python-amazon-paapi/blob/master/amazon/paapi.py#L31 ) .
2223* Reorganized product information [ structure] ( https://github.com/sergioteula/python-amazon-paapi/blob/master/PRODUCT.md ) for simple use.
2324* Ask for new features through the [ issues] ( https://github.com/sergioteula/python-amazon-paapi/issues ) section.
@@ -30,6 +31,10 @@ You can install or upgrade the module with:
3031
3132 pip install python-amazon-paapi --upgrade
3233
34+ If you get ` ModuleNotFoundError ` , try installing this:
35+
36+ pip install amightygirl.paapi5-python-sdk
37+
3338Usage guide
3439-----------
3540** Basic usage:**
@@ -75,34 +80,32 @@ Throttling value must be `greater than 0` or `False` to disable it. This value t
7580 amazon = AmazonAPI(KEY, SECRET, TAG, COUNTRY, throttling=0.5) # Max one request every two seconds
7681 amazon = AmazonAPI(KEY, SECRET, TAG, COUNTRY, throttling=False) # Unlimited requests per second
7782
78- ** API support**
79- We provide a serializer for django rest framework, which speeds up your api
83+ ** Serializer for Django:**
84+
85+ We provide a serializer for Django REST framework, which speeds up your API
8086implementation.
8187
82- from amazon.paapi import AmazonAPI
8388 from amazon.serializers import AmazonProductSerializer
8489 from rest_framework import serializers
85- amazon = AmazonAPI(KEY, SECRET, TAG, COUNTRY)
8690
87- product = amazon.get_product('B01N5IB20Q')
8891 serialized_product = AmazonProductSerializer(product)
89- serialized .data # this prints serialized product
92+ serialized_product .data
9093
91- if you like to serialize a list of products:
94+ If you want to serialize a list of products:
9295
93- products = amazon.search_products(item_count=40, keywords='Harry')
9496 serialized_products = AmazonProductSerializer(products, many=True)
9597 serialized_products.data
9698
97- For more Information how to work with serializers see the documentation of
98- [ django rest framework] ( https://www.django-rest-framework.org/api-guide/serializers/ )
99+ For more information on how to work with serializers, check the documentation for
100+ [ Django REST framework] ( https://www.django-rest-framework.org/api-guide/serializers/ ) .
99101
100102
101103Changelog
102104-------------
103- Version 3.2.1 (unreleased)
104- - Added serializer class for django rest framework
105- - Added serialized data for your convenience
105+ Version 3.3.0
106+ - Added serializer class for Django REST framework.
107+ - Solved bugs and typos.
108+
106109 Version 3.2.0
107110 - Added new method for getting browse nodes information.
108111 - Removed the 10 pages limit on search_products and get_variations methods.
0 commit comments