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 |
A subversion revision number for this package. |
Instance Variable | unzip |
A flag indicating whether this corpus should be unzipped by default. |
Instance Variable | unzipped |
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. |
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
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.