Package pyarchive :: Module identifier
[show private | hide private]
[frames | no frames]

Module pyarchive.identifier

pyarchive.identifier

A Python library which provides an interface for manipulating identifiers used by the Internet Archive (archive.org).

copyright 2004, Creative Commons, Nathan R. Yergler
Function Summary
  available(identifier)
Checks availability for a given identifier; returns True if the identifier is available, False if already in use.
  munge(identifier)
Takes a string identifier and returns it, appropriatly munged (ie, no spaces, slashes, etc); useful for converting a title to an identifier.
  verify_url(collection, identifier, mediatype)
Takes an archive.org identifier and returns the verification URL.

Variable Summary
str __copyright__ = '(c) 2004, Creative Commons, Nathan R. Y...
str __id__ = '$Id: identifier.py,v 1.3 2004/12/27 14:45:41 n...
str __license__ = 'licensed under the GNU GPL2'
str __version__ = '$Revision: 1.3 $'

Function Details

available(identifier)

Checks availability for a given identifier; returns True if the identifier is available, False if already in use. Note that this does *not* reserve the identifier, so race conditions may exist.

munge(identifier)

Takes a string identifier and returns it, appropriatly munged (ie, no spaces, slashes, etc); useful for converting a title to an identifier.

verify_url(collection, identifier, mediatype)

Takes an archive.org identifier and returns the verification URL.

Variable Details

__copyright__

Type:
str
Value:
'(c) 2004, Creative Commons, Nathan R. Yergler'                        

__id__

Type:
str
Value:
'$Id: identifier.py,v 1.3 2004/12/27 14:45:41 nyergler Exp $'          

__license__

Type:
str
Value:
'licensed under the GNU GPL2'                                          

__version__

Type:
str
Value:
'$Revision: 1.3 $'                                                     

Generated by Epydoc 2.1 on Fri Jun 24 12:01:21 2005 http://epydoc.sf.net