All the XML parsing is done with the excellent xml.etree.ElementTree standard Python library.
A class to handle feed parsing
A list of packages, stored as ElementTree objects. The feed where the package came from is stored in a “feed” XML attribute of this package for later use.
A dictionary name->version used to only keep the latest version of packages
Add a package to self.packages. If an older version of the package exists, replace it by the new version
See also