petfinder-api is a BSD licensed Python wrapper around the Petfinder API. The module handles preparing and sending API requests, parsing the response, and returning Python objects for usage in your application.

import petfinder

# Instantiate the client with your credentials.
api = petfinder.PetFinderClient(api_key='yourkey', api_secret='yoursecret')

# Query away!
for shelter in api.shelter_find(location='30127', count=500):

# Search for pets.
for pet in api.pet_find(
    animal="dog", location="29678", output="basic",
    breed="Treeing Walker Coonhound", count=200,
    print("%s - %s" % (pet['id'], pet['name']))

# TODO: Find homes for these guys.

Assorted Info

Indices and tables