Rapp Indexer APIs¶
Rapp Indexer provides follwing APIs
-
class
rocon_app_utilities.
RappIndexer
(raw_data=None, package_whitelist=None, package_blacklist=[], packages_path=None, source=None)[source]¶ -
get_compatible_rapps
(uri='rocon://', ancestor_share_check=False)[source]¶ returns all rapps which are compatible with given URI
Parameters: uri (str) – Rocon URI Returns: a dict of compatible rapps, a dict of incompatible rapps, a dict of invalid rapps Return type: {resource_name:rocon_app_utilities.Rapp}, {resource_name:rocon_app_utilities.Rapp}, {resource_name:str}
-
get_rapp
(rapp_name)[source]¶ returns complete rapp instance which includes inherited attributes from its parent
Parameters: name (rapp) – Rapp name Returns: rapp instance Return type: rocon_app_utilities.rapp.Rapp Raises: RappNotExistException: the given rapp name does not exist
-
get_raw_rapp
(rapp_name)[source]¶ returns rapp instance of given name
Parameters: rapp_name (str) – rapp name Returns: rapp Return type: rocon_app_utilities.Rapp Raises: RappNotExistException: the given rapp name does not exist
-
merge
(other_indexer)[source]¶ Updates this index with the rapps from the other_indexer.
Parameters: other_indexer (rocon_app_utilities.RappIndexer) – the other inder
-