Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A Python wrapper for the Zotero API

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 doc
Octocat-spinner-32 pyzotero
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 CONTRIBUTING.md
Octocat-spinner-32 __init__.py
Octocat-spinner-32 license.txt
Octocat-spinner-32 manifest.in
Octocat-spinner-32 readme.md
Octocat-spinner-32 setup.py
readme.md
from pyzotero import zotero
zot = zotero.Zotero(library_id, library_type, api_key)
items = zot.top(limit=5)
# we've retrieved the latest five top-level items in our library
# we can print each item's item type and ID
for item in items:
    print('Item Type: %s | Key: %s') % (item['itemType'], item['key'])

Description

Pyzotero is a Python wrapper for the Zotero read and write APIs (currently API v1). You'll require a library ID and access key, which can be set up here.

See Read The Docs for full documentation of available Pyzotero methods, code examples, and sample output.

Installation

  • using pip: pip install pyzotero
  • From a local clone, if you wish to install Pyzotero from a specific branch:

Example:

git clone git://github.com/urschrei/pyzotero.git
cd pyzotero
git checkout dev
pip install .

Installation using easy_install may be successful, but is neither tested nor officially supported – pip is the preferred method.

Python 3

Python 3.3 is currently experimentally supported.

Testing

Run tests.py in the pyzotero directory, or, using Nose, nosetests from the top-level directory.

Issues

Pyzotero remains in development as of March 2014. The latest commits can be found on the dev branch. If you encounter an error, please open an issue.

Pull Requests

Pull requests are welcomed. Please read the contribution guidelines.

License

Pyzotero is licensed under version 3 of the GNU General Public License. See license.txt for details.

Build Status

Something went wrong with that request. Please try again.