Metadata A Metadata object reads an XML-formatted package metadata file and provides read-only access to its contents. A single constructor is supported: Metadata(file) -- Reads the XML file and provides access to the metadata it specifies. Metadata String: the name of this item String: the version of this item in semantic triplet format String: the description of this item (text only, no markup allowed) List of maintainer objects with 'name' and 'email' string attributes List of applicable licenses as objects with 'name' and 'file' string attributes List of URLs as objects with 'location' and 'urltype' string attributes, where urltype is one of: * website * repository * bugtracker * readme * documentation List of author objects, each with a 'name' and a (potentially empty) 'email' string attribute List of dependencies, as objects with the following attributes: * package -- Required: must exactly match the contents of the 'name' element in the referenced package's package.xml file * version_lt -- Optional: The dependency to the package is restricted to versions less than the stated version number * version_lte -- Optional: The dependency to the package is restricted to versions less or equal than the stated version number * version_eq -- Optional: The dependency to the package is restricted to a version equal than the stated version number * version_gte -- Optional: The dependency to the package is restricted to versions greater or equal than the stated version number * version_gt -- Optional: The dependency to the package is restricted to versions greater than the stated version number * condition -- Optional: Conditional expression as documented in REP149 List of conflicts, format identical to dependencies List of things this item is considered by its author to replace: format identical to dependencies List of strings Relative path to an icon file String: the name of the main Python class this item creates/represents A list of files associated with this item -- the meaning of each file is implementation-defined A dictionary of lists of content items: defined recursively, each item is itself a Metadata object -- see package.xml file format documentation for details getGenericMetadata(name) Get the list of GenericMetadata objects with key 'name'. Generic metadata objects are Python objects with a string 'contents' and a dictionary of strings, 'attributes'. They represent unrecognized simple XML tags in the metadata file. public: MetadataPy(const Metadata & pla, PyTypeObject *T = &Type) :PyObjectBase(new Metadata(pla),T){} Metadata value() const { return *(getMetadataPtr()); }