Collection
- class appstream_python.Collection.AppstreamCollection
Represents a Collection of multiple AppStream files
- load_compressed_appstream_collection(path: str) None
Loads a GZIP compressed collection
- load_appstream_file(path: str) None
Load a appdata.xml or metainfo.xml file
- get_component_list() list[appstream_python.Component.AppstreamComponent]
Returns a list with all components
- get_component_id_list() list[str]
Returns a list with all available component id’s
- get_component(component_id: str) AppstreamComponent
Returns the component with the given id
- find_by_category(category: str) list[appstream_python.Component.AppstreamComponent]
Returns a list with all components with the given category
- get_collection_tag() Element
Gets the XML from the Collection
- write_uncompressed_file(path: str) None
Writes a Uncompressed collection file