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

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