class documentation

class ContentChecker: (source)

Known subclasses: setuptools.package_index.HashChecker

View In Hierarchy

A null content checker that defines the interface for checking content

Method feed Feed a block of data to the hash.
Method is_valid Check the hash. Return False if validation fails.
Method report Call reporter with information about the checker (hash name) substituted into the template.
def feed(self, block): (source)

Feed a block of data to the hash.

def is_valid(self): (source)

Check the hash. Return False if validation fails.

def report(self, reporter, template): (source)

Call reporter with information about the checker (hash name) substituted into the template.