Package pairtree :: Module pairtree_store
[hide private]
[frames] | no frames]

Module pairtree_store

source code

FS Pairtree storage - Factory

Conventions used:

From http://www.cdlib.org/inside/diglib/pairtree/pairtreespec.html version 0.1

This is a simple Factory-style class, which can produce pairtree store clients.

Usage

>>> from pairtree import PairtreeStorageFactory
>>> factory = PairtreeStorageFactory()

To create a pairtree store in mystore/ to hold objects which have a URI base of http://example.org/ark:/123

>>> store = factory.get_store(store_dir='mystore', uri_base='http://example.org/ark:/123')
Classes [hide private]
  PairtreeStorageFactory
Variables [hide private]
  __package__ = 'pairtree'