Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
work with the Serial Solutions Summon API from Python
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples
.gitignore
.travis.yml
LICENSE.txt
README.md
requirements.txt
setup.py
summoner.py
test.py

README.md

summoner

Build Status

Work with the Serial Solutions Summon API from Python.

from summoner import Summon

summon = Summon(summon_id, summon_secret_key)
results = summon.search("Web")

for doc in results['documents']:
  print doc['Title']

You can pass in any of the optional parameters supported by the Summon API to the search method by using the parameter name without the s. prefix. So, for example to turn highlighting off:

results = summon.search("Web", hl=False)

Or to facet by subject:

results = s.search('World Wide Web', ff='SubjectTerms,or')

Develop

To run the tests you'll need to set the SUMMON_APP_ID and SUMMON_SECRET_KEY in your environment.

  1. pip install -r requirements.txt
  2. py.test test.py
Something went wrong with that request. Please try again.