The oaipmh module is a Python implementation of an "Open Archives$ Initiative Protocol for Metadata Harvesting"
Python
Latest commit beced90 Feb 17, 2016 @jascoul jascoul Improved PY3 compatibility
Added some missing text_type calls, changed an Exception as, so that it is compatible with python<2.6. Also removed dependency on six, since it was only used for text_type
Failed to load latest commit information.
doc added client test script to docs Dec 7, 2012
src/oaipmh Improved PY3 compatibility Feb 17, 2016
.gitignore added .gitignore Jun 18, 2013
.hgignore added getMetadata verb Oct 21, 2010
.hgtags Tagging 2.4.4 Sep 30, 2010
CREDITS.txt bumped version for 2.4.5 release Dec 23, 2015
HISTORY.txt Improved PY3 compatibility Feb 17, 2016
INSTALL.txt Prepare for release. Nov 21, 2005
LICENSE.txt Preparing for 2.0. Jan 26, 2006
MANIFEST.in
README.rst
TODO.txt
buildout.cfg Use buildout to create test runner and setup environment and the like. Mar 12, 2009
setup.py

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