Package zeroinstall :: Package zerostore :: Module manifest :: Class Algorithm
[frames] | no frames]

Class Algorithm

source code

object --+
         |
        Algorithm

Abstract base class for algorithms. An algorithm knows how to generate a manifest from a directory tree.

Instance Methods
 
generate_manifest(self, root)
Returns an iterator that yields each line of the manifest for the directory tree rooted at 'root'.
source code
 
new_digest(self)
Create a new digest.
source code
 
getID(self, digest)
Convert a digest (from new_digest) to a full ID.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables
int rating
how much we like this algorithm (higher is better)
Properties

Inherited from object: __class__

Method Details

new_digest(self)

source code 

Create a new digest. Call update() on the returned object to digest the data. Call getID() to turn it into a full ID string.