msticpy.data.core.param_extractor module
Parameter extractor helper functions for use with IPython/Juptyer queries.
- msticpy.data.core.param_extractor.extract_query_params(query_source: QuerySource, *args, **kwargs) Tuple[Dict[str, Any], List[str]]
Get the parameters needed for the query.
- Parameters:
query_source (QuerySource) – Query source
args (Tuple[QueryParamProvider]) – objects that implement QueryParamProvider (from which query parameters can be extracted).
kwargs (Dict[str, Any]) – custom parameter list to populate queries (override default values and values extracted from QueryParamProviders).
- Returns:
Dictionary of parameter names and values to be used in the query. List of any missing parameters
- Return type:
Tuple[Dict[str, Any], List[str]]