hubgrep.lib.fetch_results module¶
Retrieve and aggregate repository results.
-
class
hubgrep.lib.fetch_results.AggregatedSearchResults(search_results: List[hubgrep.lib.hosting_service_interfaces._hosting_service_interface.SearchResult], failed_requests: List[hubgrep.lib.hosting_service_interfaces._hosting_service_interface.HostingServiceInterfaceResponse])¶ Bases:
objectAggregated search results and failures from hosting-service interfaces.
-
failed_requests: List[hubgrep.lib.hosting_service_interfaces._hosting_service_interface.HostingServiceInterfaceResponse]¶
-
search_results: List[hubgrep.lib.hosting_service_interfaces._hosting_service_interface.SearchResult]¶
-
-
hubgrep.lib.fetch_results.fetch_concurrently(keywords, hosting_service_interfaces: List[hubgrep.lib.hosting_service_interfaces._hosting_service_interface.HostingServiceInterface]) → hubgrep.lib.fetch_results.AggregatedSearchResults¶ Asynchronously retrieve and aggregate results from external hosting-services.
-
hubgrep.lib.fetch_results.final_sort(keywords, results)¶ Order results based on normalized score and best text match.