Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
The oaipmh module is a Python implementation of an "Open Archives$ Initiative Protocol for Metadata Harvesting"

Merge pull request #6 from arski/fs-file-support

File system file support
latest commit e2062652ef
infrae authored
Failed to load latest commit information.
doc added client test script to docs
src/oaipmh
.gitignore
.hgignore
.hgtags
CREDITS.txt
HISTORY.txt
INSTALL.txt Prepare for release.
LICENSE.txt
MANIFEST.in
README.rst
TODO.txt
bootstrap.py
buildout.cfg
setup.py Back to development: 2.4.5

README.rst

OAIPMH

The oaipmh module is a Python implementation of an "Open Archives Initiative Protocol for Metadata Harvesting" (version 2) client and server. The protocol is described here:

http://www.openarchives.org/OAI/openarchivesprotocol.html

Below is a simple implementation of an OAIPMH client:

>>> from oaipmh.client import Client
>>> from oaipmh.metadata import MetadataRegistry, oai_dc_reader
>>> URL = 'http://uni.edu/ir/oaipmh'
>>> registry = MetadataRegistry()
>>> registry.registerReader('oai_dc', oai_dc_reader)
>>> client = Client(URL, registry)
>>> for record in client.listRecords(metadataPrefix='oai_dc'):
>>>    print record

The pyoai package also contains a generic server implementation of the OAIPMH protocol, this is used as the foundation of the MOAI Server Platform

Something went wrong with that request. Please try again.