class documentation

A directory entry for a downloadable package. These entries are extracted from the XML index file that is downloaded by Downloader. Each package consists of a single file; but if that file is a zip file, then it can be automatically decompressed when the package is installed.

Static Method fromxml Undocumented
Method __init__ Undocumented
Method __lt__ Undocumented
Method __repr__ Undocumented
Instance Variable author Author of this package.
Instance Variable checksum The MD-5 checksum of the package file.
Instance Variable contact Name & email of the person who should be contacted with questions about this package.
Instance Variable copyright Copyright holder for this package.
Instance Variable filename The filename that should be used for this package's file. It is formed by joining self.subdir with self.id, and using the same extension as url.
Instance Variable id A unique identifier for this package.
Instance Variable license License information for this package.
Instance Variable name A string name for this package.
Instance Variable size The filesize (in bytes) of the package file.
Instance Variable subdir The subdirectory where this package should be installed. E.g., 'corpora' or 'taggers'.
Instance Variable svn_revision A subversion revision number for this package.
Instance Variable unzip A flag indicating whether this corpus should be unzipped by default.
Instance Variable unzipped_size The total filesize of the files contained in the package's zipfile.
Instance Variable url A URL that can be used to download this package's file.
@staticmethod
def fromxml(xml): (source)

Undocumented

def __init__(self, id, url, name=None, subdir='', size=None, unzipped_size=None, checksum=None, svn_revision=None, copyright='Unknown', contact='Unknown', license='Unknown', author='Unknown', unzip=True, **kw): (source)

Undocumented

def __lt__(self, other): (source)

Undocumented

def __repr__(self): (source)

Undocumented

Author of this package.

checksum = (source)

The MD-5 checksum of the package file.

Name & email of the person who should be contacted with questions about this package.

copyright = (source)

Copyright holder for this package.

filename = (source)

The filename that should be used for this package's file. It is formed by joining self.subdir with self.id, and using the same extension as url.

A unique identifier for this package.

License information for this package.

A string name for this package.

The filesize (in bytes) of the package file.

The subdirectory where this package should be installed. E.g., 'corpora' or 'taggers'.

svn_revision = (source)

A subversion revision number for this package.

A flag indicating whether this corpus should be unzipped by default.

unzipped_size = (source)

The total filesize of the files contained in the package's zipfile.

A URL that can be used to download this package's file.