![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
A simple Python wrapper for the last version of the Amazon Product Advertising API. This module allows to get product information from Amazon using the official API in an easier way. Like Bottlenose you can use cache reader and writer to limit the number of api calls.
You can install or upgrade the module with:
pip install amazon-paapi5 --upgrade
Search items::
from amazon.paapi import AmazonAPI
amazon = AmazonAPI(KEY, SECRET, TAG, COUNTRY)
products = amazon.search_items(keywords='harry potter')
print(product['data'][0].image_large)
print(product['data'][1].prices.price)
Get multiple products information::
from amazon.paapi import AmazonAPI
amazon = AmazonAPI(KEY, SECRET, TAG, COUNTRY)
products = amazon.get_items(item_ids=['B01N5IB20Q','B01F9G43WU'])
print(products['data']['B01N5IB20Q'].image_large)
print(products['data']['B01F9G43WU'].prices.price)
Get variations::
from amazon.paapi import AmazonAPI
amazon = AmazonAPI(KEY, SECRET, TAG, COUNTRY)
products = amazon.get_variations(asin=['B01N5IB20Q','B01F9G43WU'])
Get browse nodes::
from amazon.paapi import AmazonAPI
amazon = AmazonAPI(KEY, SECRET, TAG, COUNTRY)
browseNodes = amazon.get_browse_nodes(browse_node_ids=['473535031'])
Use cache reader and writer::
from amazon.paapi import AmazonAPI
DATA = []
def custom_save_function(url, data, http_info):
DATA.append({'url':url, 'data': data, 'http_info':http_info})
def custom_retrieval_function(url):
for item in DATA:
if item["url"] == url:
return {'data':item['data'], 'http_info': item['http_info']}
return None
amazon = AmazonAPI(KEY, SECRET, TAG, COUNTRY, CacheReader=custom_retrieval_function, CacheWriter=custom_save_function)
products = amazon.search_items(keywords='harry potter')
Version 1.1.2
- License MIT
Version 1.1.1
- add additional parameters to api calls
Version 1.1.0
- CacheReader and CacheWriter available for all the search functions
- Defintion af AmazonException to get exceptions during the api calls
- Constants defintion
- AmazonProduct and AmazonBrowseNode definition
- Uniform data structure returned by all the api calls
Version 1.0.0
- CacheReader and CacheWriter
- Enable throttling
Version 0.1.0
- First release
FAQs
Amazon Product Advertising API 5.0 wrapper for Python
We found that amazon-paapi5 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.