Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

The simplest way to build Amazon Affiliate links, in Python.

Project Description

# python-amazonify

The simplest way to build Amazon Affiliate links, in Python.


## Install

To install ``python-amazonify``, simply run
``pip install amazonify`` and you'll get the latest version installed

## Usage

Using ``amazonify`` is really easy. All you do is pass it the Amazon URL you'd
like to make into an affiliate link, and your Amazon affiliate tag.

``` python
>>> from amazonify import amazonify
>>> # Your Amazon affiliate tag:
>>> affiliate_tag = 'rdegges-20'
>>> # Some non-affiliate Amazon URLs:
>>> urls = [
... '',
... '',
... '',
... '',
... '',
... ]
>>> affiliate_urls = [amazonify(u, tag) for u in urls]
>>> affiliate_urls

**NOTE**: If the URL you try to ``amazonify`` is invalid, ``amazonify`` will return ``None``.

## Confused?

Have no idea what I'm talking about? See
[Amazon's Affiliate Program](


[Shop on Amazon!](

## Tests

[![Build Status](](

Want to run the tests? No problem:

``` bash
$ git clone git://
$ cd python-amazonify
$ python develop
$ pip install -r requirements.txt # Install test dependencies.
$ nosetests
Ran 13 tests in 0.166s


## Changelog

v0.1: 5-16-2012

- Initial release!

Release History

This version
History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(88.3 kB) Copy SHA256 Hash SHA256
Source May 17, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting