Skip to main content

Bottlenose

Description

Bottlenose takes care of everything you might want to do with the Amazon Product Advertising API. Unlike other libraries, Bottlenose doesn’t tell you what you can and can’t do. For example: let’s say Amazon adds a new possible value for their Operation parameter. No problem! Bottlenose lets you incorporate these changes into your code immediately, even without updating Bottlenose. How? Check it out below.

Usage

Creation:

>>> import bottlenose
>>> amazon = bottlenose.Amazon(access_key_id, secret_access_key, associate_tag)
>>> response = amazon.ItemLookup(ItemId = "0596520999", ResponseGroup =
    "Images", SearchIndex = "Books", IdType = "ISBN",
    Style="http://xml2json-xslt.googlecode.com/svn/trunk/xml2json.xslt")
{"ItemLookupResponse":{"OperationRequest":{"HTTPHeaders":{"Header":null},"Re...

Notice that I do not like XML. Despite this, you are free to omit the Style parameter when making your calls to Amazon. I like using an amazing XSLT stylesheet written by Doeke Zanstra that does its best to convert XML to JSON. As far as I can tell, it does a pretty amazing job with Amazon’s responses. I’ve included the stylesheet in this project if you’d like to host it yourself.

Want to grab some other data? No problem! Bottlenose to the rescue:

>>> response = amazon.Help(About = "ListSearch", HelpType = "Operation")
<?xml version="1.0" encoding="UTF-8"?><HelpResponse xmlns="http://webserv...

Any valid API call from the following is supported (in addition to any others that may be added in the future–the code is self-healing, it’s amazing!):

BrowseNodeLookup
CartAdd
CartClear
CartCreate
CartGet
CartModify
CustomerContentLookup
CustomerContentSearch
Help
ItemLookup
ItemSearch
ListLookup
ListSearch
SellerListingLookup
SellerListingSearch
SellerLookup
SimilarityLookup
TagLookup
TransactionLookup
VehiclePartLookup
VehiclePartSearch
VehicleSearch

For more information about these calls, please consult the Product Advertising API Developer Guide (http://docs.amazonwebservices.com/AWSECommerceService/latest/DG/index.html).

License

Copyright &copy; 2010 Dan Loewenherz

See LICENSE for details.

Metadata

Release files for bottlenose 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bottlenose 0.1
File Size Uploaded Provenance Actions
bottlenose-0.1.tar.gz 3.3 kB Without provenance Details for bottlenose-0.1.tar.gz

Release files / bottlenose-0.1.tar.gz

Download URL bottlenose-0.1.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8a4d0342a66e9fd999513a57a491be0d0c1b99962bf3be457164ebdffc680d84
BLAKE2b-256 checksum
How to use checksums
783620f8cb309f4f4f57a74660dfbabcebe56453bf38f8460f6809b81865cf40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for bottlenose 0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page