msticpy/datamodel/pivot.py
def reload_pivots(
        self,
        namespace: Dict[str, Any] = None,
        providers: Iterable[Any] = None,
        clear_existing: bool = True,
    ):
        """
        Load or reload Pivot functions from environment and/or providers list.

        Parameters
        ----------
        namespace : Dict[str, Any], optional
            To search for and use any current providers, specify
            `namespace=globals()`, by default None
        providers : Iterable[Any], optional
            A list of query providers, TILookup or other providers to
            use (these will override providers of the same type read
            from `namespace`), by default None
        clear_existing : bool
            Reloads pivot functions without clearing existing pivot
            assignments. Any pivot functions with conflicting names will
            be overwritten by the reload operation.
            The default is True.

        """
        if clear_existing:
            self.remove_pivot_funcs(entity="all")

        self._get_all_providers(namespace, providers)

        # load and assign functions for data queries
        data_provs = (
            prov for prov in self._providers.values() if isinstance(prov, QueryProvider)
        )
        for prov in data_provs:
            add_data_queries_to_entities(prov, self.get_timespan)

        # load TI functions
        add_ioc_queries_to_entities(self.get_provider("TILookup"), container="ti")

        # Add pivots from config registry
        register_pivots(
            file_path=self._get_def_pivot_reg(), container="util", namespace=namespace
        )

        Load or reload Pivot functions from environment and/or providers list.

        Parameters
        ----------
        namespace : Dict[str, Any], optional
            To search for and use any current providers, specify
            `namespace=globals()`, by default None
        providers : Iterable[Any], optional
            A list of query providers, TILookup or other providers to
            use (these will override providers of the same type read
            from `namespace`), by default None
        clear_existing : bool
            Reloads pivot functions without clearing existing pivot
            assignments. Any pivot functions with conflicting names will
            be overwritten by the reload operation.
            The default is True.

        
Load or reload Pivot functions from environment and/or providers list.
Parameters

namespace : Dict[str, Any], optional
To search for and use any current providers, specify
`namespace=globals()`, by default None
providers : Iterable[Any], optional
A list of query providers, TILookup or other providers to
use (these will override providers of the same type read
from `namespace`), by default None
clear_existing : bool
Reloads pivot functions without clearing existing pivot
assignments. Any pivot functions with conflicting names will
be overwritten by the reload operation.
The default is True.
Load or reload Pivot functions from environment and / or providers list . Parameters namespace : Dict [ str Any ] optional To search for and use any current providers specify ` namespace = globals () ` by default None providers : Iterable [ Any ] optional A list of query providers TILookup or other providers to use ( these will override providers of the same type read from ` namespace ` ) by default None clear_existing : bool Reloads pivot functions without clearing existing pivot assignments . Any pivot functions with conflicting names will be overwritten by the reload operation . The default is True .
def reload_pivots(
        self,
        namespace: Dict[str, Any] = None,
        providers: Iterable[Any] = None,
        clear_existing: bool = True,
    ):
        if clear_existing:
            self.remove_pivot_funcs(entity="all")
        self._get_all_providers(namespace, providers)
        data_provs = (
            prov for prov in self._providers.values() if isinstance(prov, QueryProvider)
        )
        for prov in data_provs:
            add_data_queries_to_entities(prov, self.get_timespan)
        add_ioc_queries_to_entities(self.get_provider("TILookup"), container="ti")
        register_pivots(
            file_path=self._get_def_pivot_reg(), container="util", namespace=namespace
        )
def reload_pivots ( self , namespace : Dict [ str , Any ] = None , providers : Iterable [ Any ] = None , clear_existing : bool = True , ) : if clear_existing : self . remove_pivot_funcs ( entity = "all" ) self . _get_all_providers ( namespace , providers ) data_provs = ( prov for prov in self . _providers . values ( ) if isinstance ( prov , QueryProvider ) ) for prov in data_provs : add_data_queries_to_entities ( prov , self . get_timespan ) add_ioc_queries_to_entities ( self . get_provider ( "TILookup" ) , container = "ti" ) register_pivots ( file_path = self . _get_def_pivot_reg ( ) , container = "util" , namespace = namespace )
Load or reload Pivot functions from environment and/or providers list.
Load or reload Pivot functions from environment and / or providers list .
"""
        Load or reload Pivot functions from environment and/or providers list.

        Parameters
        ----------
        namespace : Dict[str, Any], optional
            To search for and use any current providers, specify
            `namespace=globals()`, by default None
        providers : Iterable[Any], optional
            A list of query providers, TILookup or other providers to
            use (these will override providers of the same type read
            from `namespace`), by default None
        clear_existing : bool
            Reloads pivot functions without clearing existing pivot
            assignments. Any pivot functions with conflicting names will
            be overwritten by the reload operation.
            The default is True.

        """ # load and assign functions for data queries # load TI functions # Add pivots from config registry
self
namespace
Dict[str, Any]
providers
Iterable[Any]
clear_existing
bool