qitoolchain.feeds – Parsing toolchain feeds

All the XML parsing is done with the excellent xml.etree.ElementTree standard Python library.


class qitoolchain.feed. ToolchainFeedParser

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

append_package ( package_tree )

Add a package to self.packages. If an older version of the package exists, replace it by the new version

parse ( feed )

Recursively parse the feeds, filling packages while doing so.

See also