logo
Home | Project page external link | Download | Docs | Changelog | Contact external link

PyAWS is a Python wrapper for the latest Amazon Web Service. It is designed to pave the way for Python developers to interactivate AWS. This project is forked from the code base of pyamazon. The Amazone E-Commerce Services is supported.

PyAWS 0.2.0 released - 2007-04-08

The release has full support for Amazon E-Commerce Service. Five New functions are added: SellerListingSearch, SellerListingLookup, BrowseNodeLookup, Help and TransactionLookup. Several bugs are fixed; and some parts of code are refactored.

PyAWS 0.1.0 released - 2007-02-04

The initial release includes the support for the Amazon E-Commerce Service.

Features

  • » Build the Python object on the fly from the DOM tree.
  • » The page-based REST response is mapped as the iterator object.
  • » Runtime errors are mapped to exceptions
  • » Fine-tuned object generation makes more sense.
  • » Easy to extend.
  • » More!

Quick Start

>>> from pyaws import ecs
>>> ecs.setLicenseKey('Your-AWS-License-Key')
>>> books = ecs.ItemSearch('python', SearchIndex='Books')
>>> books[0].Title                 # books is a paged iterator
u'Learning Python, Second Edition'
>>> len(books)                     # get length of books
510
>>> books[101].Title               # random access the books
u'The First 280 Years of Monty Python'
>>> books[5].Title               
u'Python Programming: An Introduction to Computer Science'
>>> cart = ecs.CartCreate([books[0], books[5]], (2, 3))
>>> for x in cart.CartItems:
...	print x.Title
...	
u'Learning Python, Second Edition'
u'Python Programming: An Introduction to Computer Science'