Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/microsoft/msticpy
/ functions
Functions
3,664 in github.com/microsoft/msticpy
⨍
Functions
3,664
◇
Types & classes
443
↳
Endpoints
149
↓ 878 callers
Method
get
Get item with aliasing.
msticpy/common/pkg_config.py:64
↓ 141 callers
Method
get
Return results of httpx.get.
tests/context/test_tiproviders.py:97
↓ 89 callers
Function
custom_mp_config
Context manager to temporarily set MSTICPYCONFIG path. Parameters ---------- mp_path : str | Path Path to msticpy config yam
tests/unit_test_lib.py:49
↓ 89 callers
Function
get_test_data_path
Get path to testdata folder.
tests/unit_test_lib.py:30
↓ 55 callers
Method
json
Return Python representation of json data.
tests/context/test_tiproviders.py:85
↓ 46 callers
Function
get_http_timeout
Return timeout from settings or overridden in `kwargs`.
msticpy/common/pkg_config.py:380
↓ 46 callers
Method
max
Return the current progress maximum value. Returns ------- int Max value
msticpy/nbwidgets/progress.py:63
↓ 40 callers
Method
get_value
Return setting value at `path`.
msticpy/config/mp_config_control.py:108
↓ 38 callers
Method
get
Return dict value or default.
msticpy/auth/keyvault_settings.py:100
↓ 34 callers
Function
get_config
Return setting item for path. Parameters ---------- setting_path : str Path to setting item expressed as dot-separated
msticpy/common/pkg_config.py:132
↓ 31 callers
Method
get
Return key value or default.
msticpy/common/wsconfig.py:196
↓ 29 callers
Method
connect
Test method.
tests/data/test_dataqueries.py:53
↓ 29 callers
Method
set_driver_property
Set an item in driver properties.
msticpy/data/drivers/driver_base.py:281
↓ 28 callers
Function
_pr_output
Output to IPython display or print.
msticpy/init/nbinit.py:444
↓ 28 callers
Method
get
Return a Kusto config dictionary.
tests/data/drivers/test_azure_kusto_driver.py:119
↓ 27 callers
Function
get_api_headers
Return authorization header with current token. Parameters ---------- token : str Azure auth token. Returns -------
msticpy/context/azure/azure_data.py:1077
↓ 25 callers
Function
mp_ua_header
Return headers dict for MSTICPy User Agent.
msticpy/common/utility/package.py:191
↓ 24 callers
Method
check_connected
Check that Sentinel workspace is connected.
msticpy/context/azure/sentinel_utils.py:246
↓ 22 callers
Method
decode
Return decoded token.
tests/init/mssparkutils_fixtures.py:113
↓ 22 callers
Function
get_provider_settings
Read Provider settings from package config. Parameters ---------- config_section : str, optional [description], by default "
msticpy/common/provider_settings.py:113
↓ 20 callers
Method
_pr_debug
Print out debug info.
msticpy/context/geoip.py:847
↓ 20 callers
Method
set_status
Set the status text.
msticpy/config/comp_edit.py:70
↓ 19 callers
Function
_disp_html
Display the HTML text.
msticpy/init/azure_ml_tools.py:362
↓ 19 callers
Method
_ensure_connected
Check connection state and raise error if not connected. Parameters ---------- provider_name : str, optional
msticpy/data/drivers/driver_base.py:315
↓ 19 callers
Method
connect
Connect to data source. Parameters ---------- connection_str : str Connection string for the data source
msticpy/data/core/data_providers.py:193
↓ 19 callers
Method
run
Run the pipeline on the supplied DataFrame. Parameters ---------- data : pd.DataFrame Input DataFrame fo
msticpy/init/pivot_core/pivot_pipeline.py:268
↓ 18 callers
Function
_debug_print_trace
(*args)
msticpy/transform/base64unpack.py:464
↓ 18 callers
Method
create_query
Return query with values from kwargs and defaults substituted. Parameters ---------- formatters : dict[str, Callable
msticpy/data/core/query_source.py:217
↓ 17 callers
Function
_run_extract
Run individual tests.
tests/transform/test_ioc_extractor.py:59
↓ 17 callers
Method
add_edge
Add an edge between self and target. Parameters ---------- target : Node Target node. edge_attrs
msticpy/datamodel/entities/entity_graph.py:25
↓ 17 callers
Function
import_driver
Unsupported type for environment.
msticpy/data/drivers/__init__.py:52
↓ 17 callers
Method
search
Return results of a VT search query as a DataFrame. Parameters ---------- query : str Virus Total Intell
msticpy/context/vtlookupv3/vtlookupv3.py:935
↓ 16 callers
Method
_check_ioc_type
Check Ioc Type and cleans up ioc. Parameters ---------- ioc : str IoC ioc_type : str, optional
msticpy/context/tiproviders/ti_provider_base.py:80
↓ 16 callers
Function
check_kwargs
Check all kwargs names against a list. Parameters ---------- supplied_args : dict[str, Any] Arguments to check legal_arg
msticpy/common/utility/types.py:133
↓ 16 callers
Method
get_token
Get an authneticaiton token.
msticpy/auth/msal_auth.py:78
↓ 16 callers
Method
merge
Merge with other entity to create new entity. Returns ------- Entity Merged entity. Raises
msticpy/datamodel/entities/entity.py:362
↓ 15 callers
Method
filter
Filter all columns of DataFrame, return rows with any matches. Parameters ---------- expr : Union[str, Number]
msticpy/init/pivot_core/pivot_pd_accessor.py:258
↓ 15 callers
Method
query
Test method.
tests/data/test_dataqueries.py:58
↓ 14 callers
Method
add_ioc_type
Add an IoC type and regular expression to use to the built-in set. Parameters ---------- ioc_type : str
msticpy/transform/iocextract.py:252
↓ 14 callers
Method
close
Close an open GeoIP DB.
msticpy/context/geoip.py:527
↓ 14 callers
Method
get_defn
Return the setting definition at `path`.
msticpy/config/mp_config_control.py:135
↓ 14 callers
Method
getvalue
Button on_click handler.
msticpy/nbwidgets/option_buttons.py:110
↓ 14 callers
Function
is_ipython
Return True if running in IPython environment. Parameters ---------- notebook : bool, optional If notebook is true this will
msticpy/common/utility/ipython.py:139
↓ 13 callers
Method
_failed_response
Return True if negative response. Parameters ---------- response : Dict The returned data response
msticpy/context/http_provider.py:286
↓ 13 callers
Method
extract
Extract IoCs from either a string or pandas DataFrame. Parameters ---------- src : str, optional source
msticpy/transform/iocextract.py:332
↓ 12 callers
Method
_list_items
Return lists of core resources from APIs. Parameters ---------- item_type : str The type of resource you
msticpy/context/azure/sentinel_utils.py:97
↓ 12 callers
Function
az_connect
Connect to Azure SDK/API. Parameters ---------- auth_methods : List[str], optional List of authentication methods to try
msticpy/auth/azure_auth.py:37
↓ 12 callers
Method
get_control
Return the control stored at `path`.
msticpy/config/mp_config_control.py:122
↓ 12 callers
Method
list_queries
Return list of family.query in the store. Parameters ---------- substring : Optional[str] Optional patte
tools/mp_demo_data.py:147
↓ 12 callers
Method
parse
Return parsed IoCType of string. Parameters ---------- value : str Enumeration name Returns
msticpy/transform/iocextract.py:85
↓ 12 callers
Function
py_to_widget
Adjust type and format to suit target widget. Parameters ---------- value : Any The value to process ctrl : Optional[wid
msticpy/config/ce_common.py:66
↓ 11 callers
Function
ensure_df_timedeltas
Return dataframe with KQL timespan columns converted to timedelta64[ns]. This function converts string columns containing KQL timespan value
msticpy/common/data_utils.py:75
↓ 11 callers
Method
exists
(self)
tests/data/storage/test_azure_blob_storage.py:105
↓ 11 callers
Function
extract_sentinel_response
Build request data body from items. Parameters ---------- items : dict A set pf items to be formated in the request body.
msticpy/context/azure/sentinel_utils.py:315
↓ 11 callers
Method
has_edge
Return True if node has an edge with `other`.
msticpy/datamodel/entities/entity_graph.py:43
↓ 11 callers
Method
lookup_ioc
Lookup a single IoC observable.
tests/testdata/plugins/ti_prov.py:67
↓ 11 callers
Method
train
Train the model by computing counts and probabilities. In particular, computes the counts and probabilities of the commands
msticpy/analysis/anomalous_sequence/model.py:118
↓ 11 callers
Function
txt_fmt
Return a dictionary with layout and style for a text widget. Parameters ---------- width : str, optional The width of the wi
msticpy/config/query_editor.py:55
↓ 11 callers
Method
validate_setting
Validate settings against definitions for a specific path. Parameters ---------- path : str The setting
msticpy/config/mp_config_control.py:245
↓ 10 callers
Method
_parse_vt_results
Parse VirusTotal results based on IoCType. :param vt_results: Raw results from VT :param observable: The observable
msticpy/context/vtlookupv3/vtlookup.py:481
↓ 10 callers
Function
ensure_df_datetimes
Return dataframe with converted TZ-aware timestamps. Parameters ---------- data : pd.DataFrame Input dataframe columns :
msticpy/common/data_utils.py:22
↓ 10 callers
Method
get_entities_of_type
Return entity collection for a give entity type. Parameters ---------- entity_type : str, optional The e
msticpy/nbtools/security_base.py:400
↓ 10 callers
Method
get_query
Return query with name `data_family` and `query_name`. Parameters ---------- query_name: str Name of the
msticpy/data/core/query_store.py:317
↓ 10 callers
Method
get_secret
Retrieve a secret from the keyring. Parameters ---------- secret_name : str Secret name. Return
msticpy/auth/keyring_client.py:47
↓ 10 callers
Function
md
Display a string as Markdown with optional style. Parameters ---------- string : str The string to display styles : Unio
msticpy/common/utility/ipython.py:28
↓ 9 callers
Function
_validate_timespan
(timespan, start=None, end=None, period=None)
tests/common/test_timespan.py:19
↓ 9 callers
Function
bokeh_figure
Wrap bokeh 'figure' function for version-agnostic param naming. Parameters ---------- func : Callable The function to wrap
msticpy/vis/figure_dimension.py:54
↓ 9 callers
Method
build_process_tree
Build process trees from the process events. Parameters ---------- schema : Union[ProcSchema, Dict[str, Any]], optio
msticpy/init/mp_pandas_accessors.py:137
↓ 9 callers
Method
connect
Authenticate with the SDK & API. Parameters ---------- auth_methods : List, optional list of preferred a
msticpy/context/azure/sentinel_core.py:221
↓ 9 callers
Method
connect
Connect to Splunk via splunk-sdk. Parameters ---------- connection_str : Optional[str], optional Connect
msticpy/data/drivers/splunk_driver.py:123
↓ 9 callers
Method
connect
Connect to data source. Either a connection string or a cluster name must be specified. The cluster name can be a short name
msticpy/data/drivers/azure_kusto_driver.py:277
↓ 9 callers
Method
display
Display the interactive widgets.
msticpy/nbwidgets/core.py:115
↓ 9 callers
Function
load_user_session
Load user session configuration. Parameters ---------- session_file : str, Path, optional Path to the user configuration fil
msticpy/init/mp_user_session.py:76
↓ 9 callers
Function
print_debug
Print args to std_out (Debug version).
msticpy/config/ce_common.py:49
↓ 9 callers
Method
query
Execute splunk query and retrieve results via OneShot or async search mode. Parameters ---------- query : str
msticpy/data/drivers/splunk_driver.py:245
↓ 9 callers
Function
run_txt2df
Convert cell text to pandas DataFrame.
msticpy/init/pivot_core/pivot_magic_core.py:70
↓ 9 callers
Method
set_value
Set setting value at path to `value`.
msticpy/config/mp_config_control.py:112
↓ 9 callers
Method
sort
Sort output by column expression. Parameters ---------- cols : Union[str, Iterable[str], Dict[str, str]]
msticpy/init/pivot_core/pivot_pd_accessor.py:311
↓ 8 callers
Method
_debug_out
(self, mssg: str)
msticpy/nbwidgets/option_buttons.py:103
↓ 8 callers
Method
_get_elem_from_path
Return an item at the path from `member_dict`.
msticpy/config/mp_config_control.py:62
↓ 8 callers
Method
_legacy_auth
Create client with v1 authentication token. Parameters ---------- client_name : str The name of the clie
msticpy/context/azure/azure_data.py:1027
↓ 8 callers
Function
_parse_expression
Return parsed expression.
msticpy/data/sql_to_kql.py:376
↓ 8 callers
Method
_unsaved_changes
Check if there are unsaved changes.
msticpy/config/query_editor.py:943
↓ 8 callers
Method
connect
Authenticate to the Azure SDK. Parameters ---------- auth_methods : List, optional list of preferred aut
msticpy/context/azure/azure_data.py:170
↓ 8 callers
Function
custom_get_config
Context manager to temporarily set MSTICPYCONFIG path. Parameters ---------- monkeypatch : Any Pytest monkeypatch fixture
tests/unit_test_lib.py:228
↓ 8 callers
Function
generate_items
Generate item pairs from different input types. Parameters ---------- data : Any DataFrame, dictionary or iterable item_
msticpy/context/provider_base.py:444
↓ 8 callers
Method
get_http_timeout
Get http timeout from settings or kwargs.
msticpy/data/drivers/driver_base.py:335
↓ 8 callers
Method
no_border_layout
Return no-border widget layout.
msticpy/config/comp_edit.py:44
↓ 8 callers
Method
save_ctrl_values
Save the values in the control at `path` to settings.
msticpy/config/mp_config_control.py:191
↓ 8 callers
Function
validate_archive_member_path
Validate that an archive member path does not escape dest_dir. Checks for absolute paths, parent directory references, and resolved path
msticpy/common/archive_utils.py:21
↓ 7 callers
Method
__init__
Create an instance of the MsticpyUserError class. Parameters ---------- args : Iterable of strings Args
msticpy/common/exceptions.py:62
↓ 7 callers
Method
_check_observable_type
Check Observable Type and cleans up observable. Parameters ---------- obs : str Observable obs_t
msticpy/context/contextproviders/context_provider_base.py:207
↓ 7 callers
Method
_detect_polling_arr
Carry out periodogram polling detecton on an array of timestamps. Carries out the the procedure outlined in [1] to detect if the arr
msticpy/analysis/polling_detection.py:147
↓ 7 callers
Function
_err_output
Output to IPython display or print - always output regardless of verbosity.
msticpy/init/nbinit.py:454
↓ 7 callers
Method
_geolite_warn
(self: Self, msg: str)
msticpy/context/geoip.py:852
↓ 7 callers
Function
_get_pkg_version
Return comparable package version. Parameters ---------- version : str | tuple Version string or tuple Returns ----
msticpy/init/azure_ml_tools.py:328
↓ 7 callers
Method
_open_file
Open a new query collection.
msticpy/config/query_editor.py:905
↓ 7 callers
Method
_print_status
Print a status message depending on the current level of verbosity. Parameters ---------- message : str
msticpy/context/vtlookupv3/vtlookup.py:889
↓ 7 callers
Method
border_layout
Return border widget layout.
msticpy/config/comp_edit.py:32
↓ 7 callers
Method
connect
Connect to OpenObserve via python-openobserve. Parameters ---------- connection_str : str | None OpenObs
msticpy/data/drivers/openobserve_driver.py:72
next →
1–100 of 3,664, ranked by callers