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"
Python CSS

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 Merge pull request #6 from arski/fs-file-support
.gitignore
.hgignore added getMetadata verb
.hgtags Tagging 2.4.4
CREDITS.txt Add Jasper to credits.
HISTORY.txt added getMetadata verb
INSTALL.txt Prepare for release.
LICENSE.txt Preparing for 2.0.
MANIFEST.in Added doc dir to manifest
README.rst renamed README.txt to README.rst
TODO.txt Prepare for release.
bootstrap.py Add bootstrap script.
buildout.cfg Use buildout to create test runner and setup environment and the like.
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

Something went wrong with that request. Please try again.