Install & Compatibility
Where this runs
tested against v3.0.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 5.138s · 524.8MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 30.8s · import 4.716s · 515MB
530MB installed
● package 530MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
QueryProvider
✓ from msticpy.data import QueryProvider
✗ from msticpy import QueryProvider
QueryProvider is in msticpy.data, not top-level.
MSTICPyAnalysis
✓ from msticpy.analysis import timeseries_anomalies
✗ from msticpy import analysis
Use specific submodules, not the analysis package directly.
nbdisplay
✓ from msticpy.vis import nbdisplay
✗ from msticpy import nbdisplay
nbdisplay is in msticpy.vis.
GeoIPLookup
✓ from msticpy.context.geoip import GeoIPLookup
✗ from msticpy.nbtools import GeoIPLookup
GeoIPLookup moved to msticpy.context.geoip in v2.x+.
Initialize a QueryProvider using the AzureResourceGraph driver. Replace 'AzureResourceGraph' with other supported drivers (e.g., 'LogAnalytics', 'MSSentinel').
from msticpy.data import QueryProvider
import pandas as pd
# Initialize a data provider (example: Azure Resource Graph)
qry_prov = QueryProvider('AzureResourceGraph')
print('QueryProvider initialized successfully')
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'msticpy'
msticpy not installed or installed in a different environment.
fixRun 'pip install msticpy' in your active environment.
AttributeError: module 'msticpy' has no attribute 'QueryProvider'
Importing from top-level instead of msticpy.data.
fixUse 'from msticpy.data import QueryProvider'.
ValueError: Unsupported driver: 'LogAnalytics'
Using deprecated driver name in v3.x.
fixReplace 'LogAnalytics' with 'AzureMonitor' or another supported driver.
ImportError: cannot import name 'plot_timeline' from 'msticpy.vis'
Function moved or renamed in v3.x.
fixCheck docs for updated plot functions; use 'from msticpy.vis.timeline import display_timeline'.
Upgrade
Version history
3.0.1latest on PyPI · released May 11, 2026
Audit
Dependencies
pandasrequiredCore data analysis
bokehrequiredVisualizations
matplotlibrequiredVisualizations
azure-identityrequiredAzure authentication
azure-monitor-queryoptionalAzure Monitor data provider (replaced deprecated azure-loganalytics)
azure-mgmt-securityoptionalMicrosoft Defender API access
requestsrequiredHTTP requests
KqlmagicoptionalKusto query support
tqdmrequiredProgress bars