Skip to content

Commit

Permalink
improved setup description
Browse files Browse the repository at this point in the history
--HG--
extra : convert_revision : svn%3A882ca7fe-3cf8-0310-95c5-f9aabef819dd/pyoai/trunk%4044563
  • Loading branch information
jasper@882ca7fe-3cf8-0310-95c5-f9aabef819dd committed Aug 19, 2010
1 parent be83627 commit 39ca963
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 28 deletions.
49 changes: 23 additions & 26 deletions HISTORY.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
================
oaipmh changelog
================

Changes
-------
Changelog
=========

2.4.3 (2010-08-19)
==================
~~~~~~~~~~~~~~~~~~

Changes
-------
Expand All @@ -16,7 +12,7 @@ Changes
objects get pickled. (lp #617439)

2.4.2 (2010-05-03)
==================
~~~~~~~~~~~~~~~~~~

Changes
-------
Expand All @@ -26,7 +22,7 @@ Changes


2.4.1 (2009-11-16)
==================
~~~~~~~~~~~~~~~~~~

Changes
-------
Expand All @@ -35,7 +31,7 @@ Changes
default to 23:59:59 instead of 00:00:00

2.4 (2009-05-04)
================
~~~~~~~~~~~~~~~~

Changes
-------
Expand All @@ -44,14 +40,15 @@ Changes
added 'toolkit' description by default.

2.3.1 (2009-04-24)
================
~~~~~~~~~~~~~~~~~~

Changes
-------

* Raise correct error when from and until parameters have different granularities

2.3 (2009-04-23)
================
~~~~~~~~~~~~~~~~

Changes
-------
Expand All @@ -77,7 +74,7 @@ Changes
$ bin/devpython

2.2.1 (2008-04-04)
================
~~~~~~~~~~~~~~~~~~

Changes
-------
Expand All @@ -89,7 +86,7 @@ Changes
* Fix for client code that handles 503 response from server.

2.2 (2006-11-20)
================
~~~~~~~~~~~~~~~~

Changes
-------
Expand All @@ -100,33 +97,33 @@ Changes
efficiently implement batching OAI servers on top of relational
databases.

* Make it possible to explicitly pass None as the from_ or until parameters
* Make it possible to explicitly pass None as the from or until parameters
for a OAIPMH client.

* an extra nsmap argument to Server and BatchingServer allows the
programmer to specify either namespace prefix -> namespace URI mappings
programmer to specify either namespace prefix to namespace URI mappings
that should be used in the server output.

* fixed a bug where the output wasn't encoded properly as UTF-8.

2.1.5 (2006-09-18)
==================
~~~~~~~~~~~~~~~~~~

Changes
-------

* compatibility fix: it should work with lxml 1.1 now.

2.1.4 (2006-06-16)
==================
~~~~~~~~~~~~~~~~~~

Changes
-------

* Distribute as an egg.

2.1.3
=====
~~~~~

Changes
-------
Expand All @@ -141,7 +138,7 @@ Changes
* Split off datestamp handling into separate datestamp module.

2.0
===
~~~

Changes
-------
Expand All @@ -153,7 +150,7 @@ Changes
client will make sure only YYYY-MM-DD timestamps are sent.

2.0b1
=====
~~~~~

Changes
-------
Expand All @@ -176,15 +173,15 @@ Changes
list by using list() on them, however.

1.0.1
=====
~~~~~

Bugs fixed
----------

* Typo in oaipmh.py

1.0
===
~~~

Bugs fixed
----------
Expand All @@ -193,19 +190,19 @@ Bugs fixed
unicode bug.

0.7.4
=====
~~~~~

Bugs fixed
----------

* A harvest can return records with <header status="deleted"> that
* A harvest can return records with <header status~"deleted"> that
contain no metadata and are merely an indication that that
metadata-set for that resource is no longer on the OAI service.
These records should be used to remove metadata from the catalog if
it is there, bur should never be stored or catalogued
themselves. They aren't now. (Fixed in zope/OAICore/core.py)

0.7
===
~~~

Initial public release.
22 changes: 20 additions & 2 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
oaipmh
OAIPMH
======

The oaipmh module is a Python implementation of an "Open Archives
Expand All @@ -7,4 +7,22 @@ server. The protocol is described here:

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

See doc/API.txt for a description of the Python API.
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`_

.. _MOAI Server Platform: http://pypi.python.org/pypi/MOAI

0 comments on commit 39ca963

Please sign in to comment.