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

Class HashLibAlgorithm

source code

object --+    
         |    
 Algorithm --+
             |
            HashLibAlgorithm

Instance Methods
 
__init__(self, name, rating, hash_name=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
generate_manifest(self, root)
Returns an iterator that yields each line of the manifest for the directory tree rooted at 'root'.
source code
str
getID(self, digest)
Convert a digest (from new_digest) to a full ID.
source code

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

Class Variables
  new_digest = None
Create a new digest.
Instance Variables

Inherited from Algorithm: rating

Properties

Inherited from object: __class__

Method Details

__init__(self, name, rating, hash_name=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • rating (int)
  • hash_name (str | None)
  • name (str)
Overrides: object.__init__

generate_manifest(self, root)

source code 

Returns an iterator that yields each line of the manifest for the directory tree rooted at 'root'.

Parameters:
  • root (str)
Overrides: Algorithm.generate_manifest

getID(self, digest)

source code 

Convert a digest (from new_digest) to a full ID.

Returns: str
Overrides: Algorithm.getID