Skip to content

Commit 5519b74

Browse files
author
basti
committed
Merged with a76794590f670869dd8470e4d2a75a6d96c0aee5.
2 parents 299fa06 + 3625569 commit 5519b74

File tree

6 files changed

+52
-30
lines changed

6 files changed

+52
-30
lines changed

AUTHORS

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ Sebastian Rahlf <basti at redtoad dot de>
77
Contributors
88
------------
99

10+
Benoit C
1011
Dmitry Chaplinsky
11-
Kilian Valkhof
12+
Kilian Valkhof

CHANGES

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
can be several ones running at once.
1414
- Fixed #18: Throttling no longer block CPU (Thanks to Benoit C).
1515
- Added response-caching API (in ``amazonproduct.contrib.caching``) to ease
16-
development.
16+
development (Thanks to Dmitry Chaplinsky for the idea).
1717
- API explicitly warns about deprecated operations.
1818

1919
.. important:: The following operations are deprecated since 15 July 2010 and

README

+21-16
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@ Similar Products, Wish Lists and New and Used listings. More information
1212
about the API can be found at
1313
https://affiliate-program.amazon.com/gp/advertising/api/detail/main.html
1414

15-
All requests made by this module are signed as required since August 15, 2009.
16-
1715
Basic usage
18-
-----------
16+
===========
1917

2018
In order to use this API you'll obviously need an Amazon Associates Web Service
2119
account for which you must with Amazon at http://aws.amazon.com. Each account
@@ -33,7 +31,6 @@ publisher::
3331
The ``node`` object returned is a `lxml.objectified`_ element. All its
3432
attributes can be accessed the pythonic way::
3533

36-
# .pyval will convert the node content into int here
3734
total_results = node.Items.TotalResults.pyval
3835
total_pages = node.Items.TotalPages.pyval
3936

@@ -43,53 +40,61 @@ attributes can be accessed the pythonic way::
4340
print '%s: "%s"' % (book.ItemAttributes.Author,
4441
book.ItemAttributes.Title)
4542

46-
Please refer to the `documentation`_ for more details.
43+
Please refer to the more extensive `documentation`_ for more details.
4744

4845
.. _lxml.objectified: http://codespeak.net/lxml/objectify.html
4946
.. _documentation: http://packages.python.org/python-amazon-product-api/
5047

5148
Status
52-
------
49+
======
5350

54-
This module is still undergoing development. The support for the Amazon Product
55-
API is currently limited to a number of operations. Supported so far are:
51+
This module is still undergoing development. All operations can be used with
52+
the API's ``call(Operation=...)`` method. Additionally, there is a number of
53+
convenience methods that include for instance additional error checking.
54+
These are currently limited to:
5655

5756
- ``ItemLookup``
5857
- ``ItemSearch``
5958
- ``SimilarityLookup``
60-
- ``ListLookup``
61-
- ``ListSearch``
62-
- ``Help``
6359
- ``BrowseNodeLookup``
6460

6561
More functionality is to follow as development progresses.
6662

6763
Installation
68-
------------
64+
============
6965

7066
In order to install python-amazon-product-api you can use::
7167

72-
easy_install python-amazon-product-api
68+
pip python-amazon-product-api
7369

7470
or download the source package from
7571
http://pypi.python.org/pypi/python-amazon-product-api, untar it and run ::
7672

7773
python setup.py install
7874

7975
You'll also find binaries there to make your life easier if you happen to use
80-
a Windows system.
76+
a Windows system. If not, please send me an e-mail and complain loudly!
77+
78+
Development
79+
===========
8180

8281
The development version is available `bitbucket.org`_. Feel free to clone the
8382
repository and add your own features. ::
8483

8584
hg clone http://bitbucket.org/basti/python-amazon-product-api/
8685

87-
If you like what you see, drop me a line at `basti at redtoad dot de`.
86+
Patches are always welcome! Please make sure that your change does not break
87+
the tests!
8888

8989
.. _bitbucket.org: http://bitbucket.org/basti/python-amazon-product-api/
9090

9191
License
92-
-------
92+
=======
9393

9494
This module is release under the BSD License. You can find the full text of
9595
the license in the LICENSE file.
96+
97+
Changelog
98+
=========
99+
100+
.. include:: CHANGES

amazonproduct/contrib/caching.py

-3
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ def _fetch(self, url):
4646

4747
if self.cache:
4848
fp = open(path, 'w+')
49-
#node = xml.dom.minidom.parseString(resp.read())
50-
#fp.write(node.toprettyxml())
51-
from lxml import etree
5249
fp.write(etree.tostring(etree.parse(resp), pretty_print=True))
5350
fp.seek(0)
5451
return fp

misc/logo.svg misc/banner.svg

File renamed without changes.

misc/favicon.svg

100755100644
+28-9
Loading

0 commit comments

Comments
 (0)