Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Python wrapper for the DPLA API
Python
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
dplapy
.gitignore
README.md
setup.py

README.md

DESCRIPTION

dplapy is a python module that provices a wrapper to the DPLA API

INSTALLATION

If you prefer, you can check out the latest version of the source using Git:

git clone https://github.com/lbjay/dplapy.git

To install:

python setup.py install

EXAMPLE USAGE

import dplapy
api = dplapy.APIConnection('http://api.dp.la/dev/item/')

resp = api.query('biography')
count = resp.count()
results = resp.results()

-or-

resp = api.query('turtles', sort=('checkouts', dplapy.DESCENDING))

-or-

resp = api.title_query('germany', facet=['creator','subject'])

-or-

resp = api.subject_query('agriculture', limit=1, start=34356)

TODO

  • add .next_page() and .prev_page() methods to response object
  • allow facets="all"

LICENSE

GPL/BSD (Dual Licensed), portions under the Apache License

AUTHORS

Jay Luker lbjay@reallywow.com

Something went wrong with that request. Please try again.